Package reactor.netty.http.server
Enum ProxyProtocolSupportType
- All Implemented Interfaces:
Serializable
,Comparable<ProxyProtocolSupportType>
,java.lang.constant.Constable
Proxy protocol support type, this enum class defines how the HttpServer handles proxy protocol.
- Author:
- aftersss
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEach connection of the sameHttpServer
will auto detect whether there is proxy protocol.Disable the proxy protocol support.Enable support for the"HAProxy proxy protocol"
for deriving information about the address of the remote peer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyProtocolSupportType
Returns the enum constant of this type with the specified name.static ProxyProtocolSupportType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO
Each connection of the sameHttpServer
will auto detect whether there is proxy protocol. TheHttpServer
can support multiple clients(or reverse proxy server like HaProxy) with and without proxy protocol enabled at the same time. -
ON
Enable support for the"HAProxy proxy protocol"
for deriving information about the address of the remote peer. -
OFF
Disable the proxy protocol support.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-