Represents HTTP parameters
| Type | Name and description |
|---|---|
boolean |
asBoolean()
|
java.lang.Boolean |
boolean(java.lang.String name)Obtains the value of a parameter as a Boolean |
java.lang.Boolean |
boolean(java.lang.String name, java.lang.Boolean defaultValue)Obtains the value of a parameter as a Boolean |
java.lang.Byte |
byte(java.lang.String name)Obtains the value of a parameter as a byte |
java.lang.Byte |
byte(java.lang.String name, java.lang.Integer defaultValue)Obtains the value of a parameter as a byte |
java.lang.Character |
char(java.lang.String name)Obtains the value of a parameter as a character |
java.lang.Character |
char(java.lang.String name, java.lang.Character defaultValue)Obtains the value of a parameter as a character |
boolean |
containsKey(java.lang.Object key)@return Whether or not the key exists |
java.util.Date |
date(java.lang.String name)Obtains the value of a parameter as a Date |
java.util.Date |
date(java.lang.String name, java.lang.String format)Obtains the value of a parameter as a Date |
java.lang.Double |
double(java.lang.String name)Obtains the value of a parameter as a Double |
java.lang.Double |
double(java.lang.String name, java.lang.Double defaultValue)Obtains the value of a parameter as a Double |
java.lang.Float |
float(java.lang.String name)Obtains the value of a parameter as a Float |
java.lang.Float |
float(java.lang.String name, java.lang.Float defaultValue)Obtains the value of a parameter as a Float |
java.lang.String |
get(java.lang.String name)Obtains the value of a parameter |
java.lang.String |
get(java.lang.String name, java.lang.String defaultValue)Obtains the value of a parameter |
java.lang.String |
getAt(java.lang.Object key)The same as get(java.lang.String) |
java.lang.Object |
getProperty(java.lang.String name)The same as get(java.lang.String) |
java.lang.Integer |
int(java.lang.String name)Obtains the value of a parameter as an integer |
java.lang.Integer |
int(java.lang.String name, java.lang.Integer defaultValue)Obtains the value of a parameter as an integer |
boolean |
isEmpty()@return Whether there are any parameters |
java.util.Set<java.lang.String> |
keySet()@return The parameter names |
java.util.List<java.lang.String> |
list(java.lang.String name)Returns value of the parameter as a list of values |
java.lang.Long |
long(java.lang.String name)Obtains the value of a parameter as a Long |
java.lang.Long |
long(java.lang.String name, java.lang.Long defaultValue)Obtains the value of a parameter as a Long |
java.lang.Short |
short(java.lang.String name)Obtains the value of a parameter as a Short |
java.lang.Short |
short(java.lang.String name, java.lang.Integer defaultValue)Obtains the value of a parameter as a character |
Obtains the value of a parameter as a Boolean
name - The name of the parameterObtains the value of a parameter as a Boolean
name - The name of the parameterdefaultValue - The value to return if it doesn't existObtains the value of a parameter as a byte
name - The name of the parameterObtains the value of a parameter as a byte
name - The name of the parameterdefaultValue - The value to return if it doesn't existObtains the value of a parameter as a character
name - The name of the parameterObtains the value of a parameter as a character
name - The name of the parameterdefaultValue - The value to return if it doesn't exist
Obtains the value of a parameter as a Date
name - The name of the parameterObtains the value of a parameter as a Date
name - The name of the parameterformat - The formatObtains the value of a parameter as a Double
name - The name of the parameterObtains the value of a parameter as a Double
name - The name of the parameterdefaultValue - The value to return if it doesn't existObtains the value of a parameter as a Float
name - The name of the parameterObtains the value of a parameter as a Float
name - The name of the parameterdefaultValue - The value to return if it doesn't existObtains the value of a parameter
name - The name of the parameterObtains the value of a parameter
name - The name of the parameterdefaultValue - The value to return if it doesn't existThe same as get(java.lang.String)
key - The keyThe same as get(java.lang.String)
Obtains the value of a parameter as an integer
name - The name of the parameterObtains the value of a parameter as an integer
name - The name of the parameterdefaultValue - The value to return if it doesn't exist
Returns value of the parameter as a list of values
name - The name of the parameterObtains the value of a parameter as a Long
name - The name of the parameterObtains the value of a parameter as a Long
name - The name of the parameterdefaultValue - The value to return if it doesn't existObtains the value of a parameter as a Short
name - The name of the parameterObtains the value of a parameter as a character
name - The name of the parameterdefaultValue - The value to return if it doesn't exist