- All Known Subinterfaces:
CookieParameter
- All Known Implementing Classes:
GenericCookieParameter,GenericParameter
Base parameter interface defining common HTTP parameter (eg. header, cookie, query parameter...).
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescription<T> TConverts the parameter value to the specified type.<T> TConverts the parameter value to the specified type.<T> T[]Converts the parameter value to an array of the specified type.<T> T[]Converts the parameter value to an array of the specified type.Converts the parameter value to a big decimal.Converts the parameter value to a big integer.Converts the parameter value to a boolean.asByte()Converts the parameter value to a byte.Converts the parameter value to a character.Class<?>asClass()Converts the parameter value to a class.Converts the parameter value to a currency.asDouble()Converts the parameter value to a double.asFile()Converts the parameter value to a file.asFloat()Converts the parameter value to a float.Converts the parameter value to an inet address.Converts the parameter value to an integer.<T> List<T>Converts the parameter value to a list of the specified type.<T> List<T>Converts the parameter value to a list of the specified type.Converts the parameter value to a local date.Converts the parameter value to a loca date time.asLocale()Converts the parameter value to a locale.asLong()Converts the parameter value to a long.asPath()Converts the parameter value to a path.Converts the parameter value to a pattern.<T> Set<T>Converts the parameter value to a set of the specified type.<T> Set<T>Converts the parameter value to a set of the specified type.asShort()Converts the parameter value to a short.asString()Converts the parameter value to a string.asURI()Converts the parameter value to a URI.asURL()Converts the parameter value to a URL.Converts the parameter value to a zoned date time.getName()Returns the parameter name.getValue()Returns the parameter raw value.
-
Method Details
-
getName
String getName()Returns the parameter name.
- Returns:
- a name
-
getValue
String getValue()Returns the parameter raw value.
- Returns:
- a raw value
-
as
Converts the parameter value to the specified type.
- Type Parameters:
T- the target type- Parameters:
type- a class of type T- Returns:
- the converted parameter value or null
-
as
Converts the parameter value to the specified type.
- Type Parameters:
T- the target type- Parameters:
type- the target type- Returns:
- the converted parameter value or null
-
asArrayOf
Converts the parameter value to an array of the specified type.
- Type Parameters:
T- the target component type- Parameters:
type- a class of type T- Returns:
- the parameter value converted to an array of T or null
-
asArrayOf
Converts the parameter value to an array of the specified type.
- Type Parameters:
T- the target component type- Parameters:
type- the target component type- Returns:
- the parameter value converted to an array of T or null
-
asListOf
Converts the parameter value to a list of the specified type.
- Type Parameters:
T- the target list argument type- Parameters:
type- a class of type T- Returns:
- the parameter value converted to a list of T or null
-
asListOf
Converts the parameter value to a list of the specified type.
- Type Parameters:
T- the target list argument type- Parameters:
type- the target list argument type- Returns:
- the parameter value converted to a list of T or null
-
asSetOf
Converts the parameter value to a set of the specified type.
- Type Parameters:
T- the target set argument type- Parameters:
type- a class of type T- Returns:
- the parameter value converted to a set of T or null
-
asSetOf
Converts the parameter value to a set of the specified type.
- Type Parameters:
T- the target set argument type- Parameters:
type- the target set argument type- Returns:
- the parameter value converted to a set of T or null
-
asByte
Byte asByte()Converts the parameter value to a byte.
- Returns:
- the converted parameter value or null
-
asShort
Short asShort()Converts the parameter value to a short.
- Returns:
- the converted parameter value or null
-
asInteger
Integer asInteger()Converts the parameter value to an integer.
- Returns:
- the converted parameter value or null
-
asLong
Long asLong()Converts the parameter value to a long.
- Returns:
- the converted parameter value or null
-
asFloat
Float asFloat()Converts the parameter value to a float.
- Returns:
- the converted parameter value or null
-
asDouble
Double asDouble()Converts the parameter value to a double.
- Returns:
- the converted parameter value or null
-
asCharacter
Character asCharacter()Converts the parameter value to a character.
- Returns:
- the converted parameter value or null
-
asString
String asString()Converts the parameter value to a string.
- Returns:
- the converted parameter value or null
-
asBoolean
Boolean asBoolean()Converts the parameter value to a boolean.
- Returns:
- the converted parameter value or null
-
asBigInteger
BigInteger asBigInteger()Converts the parameter value to a big integer.
- Returns:
- the converted parameter value or null
-
asBigDecimal
BigDecimal asBigDecimal()Converts the parameter value to a big decimal.
- Returns:
- the converted parameter value or null
-
asLocalDate
LocalDate asLocalDate()Converts the parameter value to a local date.
- Returns:
- the converted parameter value or null
-
asLocalDateTime
LocalDateTime asLocalDateTime()Converts the parameter value to a loca date time.
- Returns:
- the converted parameter value or null
-
asZonedDateTime
ZonedDateTime asZonedDateTime()Converts the parameter value to a zoned date time.
- Returns:
- the converted parameter value or null
-
asCurrency
Currency asCurrency()Converts the parameter value to a currency.
- Returns:
- the converted parameter value or null
-
asLocale
Locale asLocale()Converts the parameter value to a locale.
- Returns:
- the converted parameter value or null
-
asFile
File asFile()Converts the parameter value to a file.
- Returns:
- the converted parameter value or null
-
asPath
Path asPath()Converts the parameter value to a path.
- Returns:
- the converted parameter value or null
-
asURI
URI asURI()Converts the parameter value to a URI.
- Returns:
- the converted parameter value or null
-
asURL
URL asURL()Converts the parameter value to a URL.
- Returns:
- the converted parameter value or null
-
asPattern
Pattern asPattern()Converts the parameter value to a pattern.
- Returns:
- the converted parameter value or null
-
asInetAddress
InetAddress asInetAddress()Converts the parameter value to an inet address.
- Returns:
- the converted parameter value or null
-
asClass
Class<?> asClass()Converts the parameter value to a class.
- Returns:
- the converted parameter value or null
-