@Experimental public enum WebSocketProtocol extends Enum<WebSocketProtocol>
| Enum Constant and Description |
|---|
WS
ws protocol. |
WSS
wss protocol. |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketProtocol |
forScheme(String scheme)
Returns the
WebSocketProtocol that corresponds to the given scheme |
String |
getScheme() |
static WebSocketProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketProtocol WS
ws protocol. Used when the Upgrade request was sent over standard HTTPpublic static final WebSocketProtocol WSS
wss protocol. Used when the Upgrade request was sent over standard HTTPSpublic static WebSocketProtocol[] values()
for (WebSocketProtocol c : WebSocketProtocol.values()) System.out.println(c);
public static WebSocketProtocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static WebSocketProtocol forScheme(String scheme)
WebSocketProtocol that corresponds to the given schemescheme - a schemeWebSocketProtocolIllegalArgumentException - if the scheme doesn't match any of the items in this enumpublic String getScheme()
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.