@groovy.transform.CompileStatic interface Parameters
Represents HTTP parameters
Type Params | Return Type | Name and description |
---|---|---|
|
abstract boolean |
asBoolean()
|
|
abstract java.lang.Boolean |
boolean(java.lang.String name) Obtains the value of a parameter as a Boolean |
|
abstract java.lang.Boolean |
boolean(java.lang.String name, java.lang.Boolean defaultValue) Obtains the value of a parameter as a Boolean |
|
abstract java.lang.Byte |
byte(java.lang.String name) Obtains the value of a parameter as a byte |
|
abstract java.lang.Byte |
byte(java.lang.String name, java.lang.Integer defaultValue) Obtains the value of a parameter as a byte |
|
abstract java.lang.Character |
char(java.lang.String name) Obtains the value of a parameter as a character |
|
abstract java.lang.Character |
char(java.lang.String name, java.lang.Character defaultValue) Obtains the value of a parameter as a character |
|
abstract boolean |
containsKey(java.lang.Object key)
|
|
abstract java.util.Date |
date(java.lang.String name) Obtains the value of a parameter as a Date |
|
abstract java.util.Date |
date(java.lang.String name, java.lang.String format) Obtains the value of a parameter as a Date |
|
abstract java.lang.Double |
double(java.lang.String name) Obtains the value of a parameter as a Double |
|
abstract java.lang.Double |
double(java.lang.String name, java.lang.Double defaultValue) Obtains the value of a parameter as a Double |
|
abstract java.lang.Float |
float(java.lang.String name) Obtains the value of a parameter as a Float |
|
abstract java.lang.Float |
float(java.lang.String name, java.lang.Float defaultValue) Obtains the value of a parameter as a Float |
|
abstract java.lang.String |
get(java.lang.String name) Obtains the value of a parameter |
|
abstract java.lang.String |
get(java.lang.String name, java.lang.String defaultValue) Obtains the value of a parameter |
|
abstract java.lang.String |
getAt(java.lang.Object key) The same as get(java.lang.String) |
|
abstract java.lang.Object |
getProperty(java.lang.String name) The same as get(java.lang.String) |
|
abstract java.lang.Integer |
int(java.lang.String name) Obtains the value of a parameter as an integer |
|
abstract java.lang.Integer |
int(java.lang.String name, java.lang.Integer defaultValue) Obtains the value of a parameter as an integer |
|
abstract boolean |
isEmpty()
|
|
abstract java.util.Set<java.lang.String> |
keySet()
|
|
abstract java.util.List<java.lang.String> |
list(java.lang.String name) Returns value of the parameter as a list of values |
|
abstract java.lang.Long |
long(java.lang.String name) Obtains the value of a parameter as a Long |
|
abstract java.lang.Long |
long(java.lang.String name, java.lang.Long defaultValue) Obtains the value of a parameter as a Long |
|
abstract java.lang.Short |
short(java.lang.String name) Obtains the value of a parameter as a Short |
|
abstract 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