Package org.jboss.resteasy.core.se
Enum Class ConfigurationOption
- All Implemented Interfaces:
Serializable
,Comparable<ConfigurationOption>
,Constable
Configurations options for configuring an
SeBootstrap.Instance
.- Author:
- James R. Perkins
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescription<T> T
The default value.<T> Class<? extends T>
The expected type.<T> T
getValue
(jakarta.ws.rs.SeBootstrap.Configuration configuration) Resolves the value from the configurationkey()
The key for the property.static ConfigurationOption
toString()
void
Validates the value can be assigned to this configuration option.static ConfigurationOption
Returns the enum constant of this class with the specified name.static ConfigurationOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROTOCOL
-
HOST
-
PORT
-
ROOT_PATH
-
SSL_CONTEXT
-
SSL_CLIENT_AUTHENTICATION
-
EMBEDDED_SERVER
-
JANDEX_INDEX
-
JANDEX_CLASS_PATH_FILTER
-
REGISTER_BUILT_INS
-
-
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
-
of
-
getValue
public <T> T getValue(jakarta.ws.rs.SeBootstrap.Configuration configuration) Resolves the value from the configuration- Type Parameters:
T
- the type for the value- Parameters:
configuration
- the configuration the value is resolved from- Returns:
- the value or the default value which may be
null
-
key
The key for the property.- Returns:
- the key for the property
-
defaultValue
public <T> T defaultValue()The default value.- Type Parameters:
T
- the type of the value- Returns:
- the default value
-
expectedType
The expected type.- Type Parameters:
T
- the type of the value- Returns:
- the expected type
-
validate
Validates the value can be assigned to this configuration option.- Parameters:
value
- the value to validate- Throws:
IllegalArgumentException
- if the value cannot be assigned to this configuration option
-
toString
- Overrides:
toString
in classEnum<ConfigurationOption>
-