public class WebSocketFilter extends BaseWebSocketFilter
| Constructor and Description |
|---|
WebSocketFilter() |
WebSocketFilter(long wsTimeoutInSeconds) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doServerUpgrade(FilterChainContext ctx,
HttpContent requestContent) |
protected NextAction |
handleHandshake(FilterChainContext ctx,
HttpContent content)
Handle websocket handshake
|
handleClose, handleRead, handleWrite, onHandshakeFailure, setIdleTimeout, webSocketInProgresscreateContext, exceptionOccurred, handleAccept, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved, toStringpublic WebSocketFilter()
public WebSocketFilter(long wsTimeoutInSeconds)
protected NextAction handleHandshake(FilterChainContext ctx, HttpContent content) throws IOException
BaseWebSocketFilterhandleHandshake in class BaseWebSocketFilterctx - FilterChainContextcontent - HTTP messageNextAction instruction for FilterChain, how it should continue the executionIOExceptionprotected boolean doServerUpgrade(FilterChainContext ctx, HttpContent requestContent) throws IOException
IOExceptionCopyright © 2017 Oracle Corporation. All Rights Reserved.