public class WebSocketClientFilter extends BaseWebSocketFilter
| Constructor and Description |
|---|
WebSocketClientFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.grizzly.filterchain.NextAction |
handleConnect(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
Method handles Grizzly
Connection connect phase. |
protected org.glassfish.grizzly.filterchain.NextAction |
handleHandshake(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
HttpContent content)
Handle websocket handshake
|
handleClose, handleRead, handleWrite, onHandshakeFailure, setIdleTimeout, webSocketInProgresspublic org.glassfish.grizzly.filterchain.NextAction handleConnect(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
throws IOException
Connection connect phase. Check if the Connection is a client-side WebSocket, if yes - creates websocket handshake packet and send it to a server. Otherwise, if it's not websocket
connection - pass processing to the next Filter in a chain.handleConnect in interface org.glassfish.grizzly.filterchain.FilterhandleConnect in class org.glassfish.grizzly.filterchain.BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it should continue the executionIOExceptionprotected org.glassfish.grizzly.filterchain.NextAction handleHandshake(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
HttpContent content)
throws IOException
BaseWebSocketFilterhandleHandshake in class BaseWebSocketFilterctx - FilterChainContextcontent - HTTP messageNextAction instruction for FilterChain, how it should continue the executionIOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.