Package org.forgerock.openig.websocket
Class WebSocketUtils
- java.lang.Object
-
- org.forgerock.openig.websocket.WebSocketUtils
-
public final class WebSocketUtils extends Object
WebSocket utility methods.
-
-
Field Summary
Fields Modifier and Type Field Description static String
UPGRADE_HEADER_NAME
HTTP WebSocket header name used to determine if a request represents a WebSocket upgrade.static String
UPGRADE_HEADER_VALUE
Value for header name "Upgrade", indicating that the request represents a WebSocket.static String
WS_KEY_HEADER_NAME
HTTP WebSocket header name used to identify the WebSocket key.static String
WS_PROTOCOL_HEADER_NAME
HTTP WebSocket header name used to identify the WebSocket protocol.static String
WS_VERSION_HEADER_NAME
HTTP WebSocket header name used to determine WebSocket version.static String
WS_VERSION_HEADER_VALUE
Value for header name "Sec-WebSocket-Version", indicating version "13".
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isWebSocketHandshake(Request request)
Returns true if this request represents a WebSocket handshake.
-
-
-
Field Detail
-
UPGRADE_HEADER_NAME
public static final String UPGRADE_HEADER_NAME
HTTP WebSocket header name used to determine if a request represents a WebSocket upgrade.- See Also:
- Constant Field Values
-
UPGRADE_HEADER_VALUE
public static final String UPGRADE_HEADER_VALUE
Value for header name "Upgrade", indicating that the request represents a WebSocket.- See Also:
- Constant Field Values
-
WS_VERSION_HEADER_NAME
public static final String WS_VERSION_HEADER_NAME
HTTP WebSocket header name used to determine WebSocket version.- See Also:
- Constant Field Values
-
WS_VERSION_HEADER_VALUE
public static final String WS_VERSION_HEADER_VALUE
Value for header name "Sec-WebSocket-Version", indicating version "13".- See Also:
- Constant Field Values
-
WS_KEY_HEADER_NAME
public static final String WS_KEY_HEADER_NAME
HTTP WebSocket header name used to identify the WebSocket key.- See Also:
- Constant Field Values
-
WS_PROTOCOL_HEADER_NAME
public static final String WS_PROTOCOL_HEADER_NAME
HTTP WebSocket header name used to identify the WebSocket protocol.- See Also:
- Constant Field Values
-
-