public class WebSocketClientFilter extends BaseWebSocketFilter
| Constructor and Description |
|---|
WebSocketClientFilter() |
| Modifier and Type | Method and Description |
|---|---|
NextAction |
handleConnect(FilterChainContext ctx)
Method handles Grizzly
Connection connect phase. |
protected NextAction |
handleHandshake(FilterChainContext ctx,
HttpContent content)
Handle websocket handshake
|
handleClose, handleRead, handleWrite, onHandshakeFailure, setIdleTimeout, webSocketInProgresscreateContext, exceptionOccurred, handleAccept, handleEvent, onAdded, onFilterChainChanged, onRemoved, toStringpublic NextAction handleConnect(FilterChainContext ctx) throws java.io.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 FilterhandleConnect in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it should continue the executionjava.io.IOExceptionprotected NextAction handleHandshake(FilterChainContext ctx, HttpContent content) throws java.io.IOException
BaseWebSocketFilterhandleHandshake in class BaseWebSocketFilterctx - FilterChainContextcontent - HTTP messageNextAction instruction for FilterChain, how it should continue the executionjava.io.IOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.