Package org.apache.http.conn.routing
Enum RouteInfo.LayerType
- All Implemented Interfaces:
Serializable
,Comparable<RouteInfo.LayerType>
,java.lang.constant.Constable
- Enclosing interface:
RouteInfo
The layering type of a route.
Plain routes are established by connecting or tunnelling.
Layered routes are established by layering a protocol such as TLS/SSL
over an existing connection.
Protocols can only be layered over a tunnel to the target, or
or over a direct connection without proxies.
Layering a protocol over a direct connection makes little sense, since the connection could be established with the new protocol in the first place. But we don't want to exclude that use case.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteInfo.LayerType
Returns the enum constant of this type with the specified name.static RouteInfo.LayerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PLAIN
-
LAYERED
-
-
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
-