- All Implemented Interfaces:
Serializable
,Comparable<ContextParam>
,Constable
The enumeration of all our context-param entries.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnable distributable code.Send the "X-Powered-By" header.The websocket endpoint port (default 0 means the code will take the port from the request) -
Method Summary
Modifier and TypeMethodDescriptionGet the default value.<T> T
getDefaultValue
(Class<T> clazz) Get the default value.getName()
Get the name.getType()
Get the type.static ContextParam
Returns the enum constant of this class with the specified name.static ContextParam[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EnableDistributable
Enable distributable code. -
SendPoweredByHeader
Send the "X-Powered-By" header. -
WebsocketEndpointPort
The websocket endpoint port (default 0 means the code will take the port from the request)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultValue
-
getDefaultValue
Get the default value.- Type Parameters:
T
- the type.- Parameters:
clazz
- the class.- Returns:
- the default value.
-
getName
-
getType
-