Package org.glassfish.grizzly.websockets
Class WebSocketFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.websockets.BaseWebSocketFilter
org.glassfish.grizzly.websockets.WebSocketFilter
- All Implemented Interfaces:
org.glassfish.grizzly.filterchain.Filter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoServerUpgrade(org.glassfish.grizzly.filterchain.FilterChainContext ctx, org.glassfish.grizzly.http.HttpContent requestContent) protected org.glassfish.grizzly.filterchain.NextActionhandleHandshake(org.glassfish.grizzly.filterchain.FilterChainContext ctx, org.glassfish.grizzly.http.HttpContent content) Handle websocket handshakeMethods inherited from class org.glassfish.grizzly.websockets.BaseWebSocketFilter
handleClose, handleRead, handleWrite, onHandshakeFailure, setIdleTimeout, webSocketInProgressMethods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, exceptionOccurred, handleAccept, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved, toString
-
Constructor Details
-
WebSocketFilter
public WebSocketFilter() -
WebSocketFilter
public WebSocketFilter(long wsTimeoutInSeconds)
-
-
Method Details
-
handleHandshake
protected org.glassfish.grizzly.filterchain.NextAction handleHandshake(org.glassfish.grizzly.filterchain.FilterChainContext ctx, org.glassfish.grizzly.http.HttpContent content) throws IOException Description copied from class:BaseWebSocketFilterHandle websocket handshake- Specified by:
handleHandshakein classBaseWebSocketFilter- Parameters:
ctx-FilterChainContextcontent- HTTP message- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
doServerUpgrade
protected boolean doServerUpgrade(org.glassfish.grizzly.filterchain.FilterChainContext ctx, org.glassfish.grizzly.http.HttpContent requestContent) throws IOException - Throws:
IOException
-