Module io.helidon.webserver
Package io.helidon.webserver
Enum Class SocketConfiguration.RequestedUriDiscoveryType
java.lang.Object
java.lang.Enum<SocketConfiguration.RequestedUriDiscoveryType>
io.helidon.webserver.SocketConfiguration.RequestedUriDiscoveryType
- All Implemented Interfaces:
Serializable
,Comparable<SocketConfiguration.RequestedUriDiscoveryType>
,Constable
- Enclosing interface:
- SocketConfiguration
public static enum SocketConfiguration.RequestedUriDiscoveryType
extends Enum<SocketConfiguration.RequestedUriDiscoveryType>
Types of discovery of frontend uri. Defaults to
HOST
when frontend uri discovery is disabled (uses only Host
header and information about current request to determine scheme, host, port, and path).
Defaults to FORWARDED
when discovery is enabled. Can be explicitly configured on socket configuration builder.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTheHttp.Header.FORWARDED
header is used to discover the original requested URI.This is the default, only theHttp.Header.HOST
header is used to discover requested URI.TheHttp.Header.X_FORWARDED_PROTO
,Http.Header.X_FORWARDED_HOST
,Http.Header.X_FORWARDED_PORT
,Http.Header.X_FORWARDED_PREFIX
headers are used to discover the original requested URI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORWARDED
TheHttp.Header.FORWARDED
header is used to discover the original requested URI. -
X_FORWARDED
TheHttp.Header.X_FORWARDED_PROTO
,Http.Header.X_FORWARDED_HOST
,Http.Header.X_FORWARDED_PORT
,Http.Header.X_FORWARDED_PREFIX
headers are used to discover the original requested URI. -
HOST
This is the default, only theHttp.Header.HOST
header is used to discover requested URI.
-
-
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
-