public final class MailRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_FOUND
Constant for not-found number.
|
| Constructor and Description |
|---|
MailRequest(com.openexchange.ajax.requesthandler.AJAXRequestData request,
com.openexchange.tools.session.ServerSession session)
Initializes a new
MailRequest. |
| Modifier and Type | Method and Description |
|---|---|
int[] |
checkIntArray(java.lang.String name)
Checks for presence of comma-separated
int list. |
java.lang.String |
checkParameter(java.lang.String name)
Gets the value mapped to given parameter name.
|
java.lang.String[] |
checkStringArray(java.lang.String name)
Checks for presence of comma-separated
String list. |
long |
getMax()
Gets the
max parameter. |
java.lang.String |
getParameter(java.lang.String name)
Gets the value mapped to given parameter name.
|
com.openexchange.ajax.requesthandler.AJAXRequestData |
getRequest()
Gets the request.
|
com.openexchange.tools.session.ServerSession |
getSession()
Gets the session.
|
boolean |
optBool(java.lang.String name)
Gets optional
boolean parameter. |
boolean |
optBool(java.lang.String name,
boolean def)
Gets optional
boolean parameter. |
int |
optInt(java.lang.String name)
Gets optional
int parameter. |
java.lang.String[] |
optStringArray(java.lang.String name)
Checks for presence of comma-separated
String list. |
public static final int NOT_FOUND
public MailRequest(com.openexchange.ajax.requesthandler.AJAXRequestData request,
com.openexchange.tools.session.ServerSession session)
MailRequest.session - The sessionrequest - The requestpublic long getMax()
throws com.openexchange.exception.OXException
max parameter.max parametercom.openexchange.exception.OXException - If max is not a numberpublic java.lang.String checkParameter(java.lang.String name)
throws com.openexchange.exception.OXException
name - The parameter namejava.lang.NullPointerException - If name is nullcom.openexchange.exception.OXException - If no such parameter existspublic java.lang.String getParameter(java.lang.String name)
name - The parameter namenull if not presentjava.lang.NullPointerException - If name is nullpublic boolean optBool(java.lang.String name)
boolean parameter.name - The parameter namebooleanpublic boolean optBool(java.lang.String name,
boolean def)
boolean parameter.name - The parameter namedef - The default value to return if such a parameter is absentbooleanpublic int optInt(java.lang.String name)
throws com.openexchange.exception.OXException
int parameter.name - The parameter nameintcom.openexchange.exception.OXException - If parameter is an invalid number valuepublic int[] checkIntArray(java.lang.String name)
throws com.openexchange.exception.OXException
int list.name - The parameter nameint arraycom.openexchange.exception.OXException - If an error occurspublic java.lang.String[] checkStringArray(java.lang.String name)
throws com.openexchange.exception.OXException
String list.name - The parameter nameString arraycom.openexchange.exception.OXException - If parameter is absdentpublic java.lang.String[] optStringArray(java.lang.String name)
String list.name - The parameter nameString arraypublic com.openexchange.ajax.requesthandler.AJAXRequestData getRequest()
public com.openexchange.tools.session.ServerSession getSession()