| Modifier and Type | Field and Description |
|---|---|
| private static final StringManager | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static List | |
| public static void | doUpgrade(WsServerContainer sc, HttpServletRequest req, HttpServletResponse resp, ServerEndpointConfig sec, Map<String, String> pathParams)
|
| private static List | |
| private static String | |
| private static boolean | |
| public static boolean | Returns: true if the request includes an HTTP Upgrade request for the WebSocket protocol, otherwise
falseThe request to check if it is an HTTP upgrade request for a WebSocket connection request, ServletResponse The response associated with the request response)Checks to see if this is an HTTP request that includes a valid upgrade request to web socket. |
| private static boolean |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| WS_ACCEPT | back to summary |
|---|---|
| private static final byte[] WS_ACCEPT | |
| UpgradeUtil | back to summary |
|---|---|
| private UpgradeUtil() | |
| append | back to summary |
|---|---|
| private static void append(StringBuilder sb, Extension extension) | |
| createTransformations | back to summary |
|---|---|
| private static List | |
| doUpgrade | back to summary |
|---|---|
| public static void doUpgrade(WsServerContainer sc, HttpServletRequest req, HttpServletResponse resp, ServerEndpointConfig sec, Map<String, String> pathParams) throws ServletException, IOException | |
| getTokensFromHeader | back to summary |
|---|---|
| private static List | |
| getWebSocketAccept | back to summary |
|---|---|
| private static String getWebSocketAccept(String key) | |
| headerContainsToken | back to summary |
|---|---|
| private static boolean headerContainsToken(HttpServletRequest req, String headerName, String target) | |
| isWebSocketUpgradeRequest | back to summary |
|---|---|
| public static boolean isWebSocketUpgradeRequest(ServletRequest request, ServletResponse response) Checks to see if this is an HTTP request that includes a valid upgrade request to web socket. Note RFC 2616 does not limit HTTP upgrade to GET requests but the Java WebSocket spec 1.0, section 8.2 implies such a limitation and RFC 6455 section 4.1 requires that a WebSocket Upgrade uses GET.
| |
| validateKey | back to summary |
|---|---|
| private static boolean validateKey(String key) | |