Package org.glassfish.tyrus.spi
Enum ClientEngine.ClientUpgradeStatus
- java.lang.Object
-
- java.lang.Enum<ClientEngine.ClientUpgradeStatus>
-
- org.glassfish.tyrus.spi.ClientEngine.ClientUpgradeStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClientEngine.ClientUpgradeStatus>
- Enclosing interface:
- ClientEngine
public static enum ClientEngine.ClientUpgradeStatus extends java.lang.Enum<ClientEngine.ClientUpgradeStatus>
Status of upgrade process.Returned by
ClientEngine.processResponse(UpgradeResponse, Writer, Connection.CloseListener)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANOTHER_UPGRADE_REQUEST_REQUIRED
Client engine needs to send another request.SUCCESS
Upgrade process was successful.UPGRADE_REQUEST_FAILED
Upgrade process failed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientEngine.ClientUpgradeStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClientEngine.ClientUpgradeStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANOTHER_UPGRADE_REQUEST_REQUIRED
public static final ClientEngine.ClientUpgradeStatus ANOTHER_UPGRADE_REQUEST_REQUIRED
Client engine needs to send another request.
-
UPGRADE_REQUEST_FAILED
public static final ClientEngine.ClientUpgradeStatus UPGRADE_REQUEST_FAILED
Upgrade process failed.
-
SUCCESS
public static final ClientEngine.ClientUpgradeStatus SUCCESS
Upgrade process was successful.
-
-
Method Detail
-
values
public static ClientEngine.ClientUpgradeStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientEngine.ClientUpgradeStatus c : ClientEngine.ClientUpgradeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientEngine.ClientUpgradeStatus valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-