public static enum WebSocketEngine.UpgradeStatus extends java.lang.Enum<WebSocketEngine.UpgradeStatus>
| Enum Constant and Description | 
|---|
| HANDSHAKE_FAILEDUpgrade failed due to version, extensions, origin check etc. | 
| NOT_APPLICABLENot a WebSocketRequest or no mapping in the application. | 
| SUCCESSUpgrade is successful. | 
| Modifier and Type | Method and Description | 
|---|---|
| static WebSocketEngine.UpgradeStatus | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static WebSocketEngine.UpgradeStatus[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final WebSocketEngine.UpgradeStatus NOT_APPLICABLE
public static final WebSocketEngine.UpgradeStatus HANDSHAKE_FAILED
UpgradeResponse.public static final WebSocketEngine.UpgradeStatus SUCCESS
public static WebSocketEngine.UpgradeStatus[] values()
for (WebSocketEngine.UpgradeStatus c : WebSocketEngine.UpgradeStatus.values()) System.out.println(c);
public static WebSocketEngine.UpgradeStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2012–2020 Oracle Corporation. All rights reserved.