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, webSocketInProgress
createContext, exceptionOccurred, handleAccept, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved
public WebSocketFilter()
public WebSocketFilter(long wsTimeoutInSeconds)
protected NextAction handleHandshake(FilterChainContext ctx, HttpContent content) throws IOException
BaseWebSocketFilter
handleHandshake
in class BaseWebSocketFilter
ctx
- FilterChainContext
content
- HTTP messageNextAction
instruction for FilterChain
, how it should continue the executionIOException
protected boolean doServerUpgrade(FilterChainContext ctx, HttpContent requestContent) throws IOException
IOException
Copyright © 2015 Oracle Corporation. All rights reserved.