Package io.netty.handler.codec.http
Enum HttpClientUpgradeHandler.UpgradeEvent
java.lang.Object
java.lang.Enum<HttpClientUpgradeHandler.UpgradeEvent>
io.netty.handler.codec.http.HttpClientUpgradeHandler.UpgradeEvent
- All Implemented Interfaces:
Serializable
,Comparable<HttpClientUpgradeHandler.UpgradeEvent>
,java.lang.constant.Constable
- Enclosing class:
HttpClientUpgradeHandler
public static enum HttpClientUpgradeHandler.UpgradeEvent
extends Enum<HttpClientUpgradeHandler.UpgradeEvent>
User events that are fired to notify about upgrade status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Upgrade request was sent to the server.The Upgrade was unsuccessful due to the server not issuing with a 101 Switching Protocols response.The Upgrade to the new protocol was successful. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UPGRADE_ISSUED
The Upgrade request was sent to the server. -
UPGRADE_SUCCESSFUL
The Upgrade to the new protocol was successful. -
UPGRADE_REJECTED
The Upgrade was unsuccessful due to the server not issuing with a 101 Switching Protocols response.
-
-
Constructor Details
-
UpgradeEvent
private UpgradeEvent()
-
-
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
-