Top Constructors Methods
org.glassfish.grizzly.websockets

public Class WebSocketFilter

extends BaseWebSocketFilter
Class Inheritance
Imports
java.io.IOException, org.glassfish.grizzly.filterchain.FilterChainContext, .NextAction, org.glassfish.grizzly.http.HttpContent, .HttpRequestPacket, .HttpResponsePacket

Constructor Summary

AccessConstructor and Description
public
public
WebSocketFilter(long wsTimeoutInSeconds)

Method Summary

Modifier and TypeMethod and Description
private static HttpResponsePacket
protected boolean
doServerUpgrade(final FilterChainContext ctx, final HttpContent requestContent)

protected NextAction
private NextAction
handleServerHandshake(final FilterChainContext ctx, final HttpContent
HTTP message
requestContent
)

Handle server-side websocket handshake

Inherited from org.glassfish.grizzly.websockets.BaseWebSocketFilter:
handleClosehandleReadhandleWriteonHandshakeFailuresetIdleTimeoutwebSocketInProgress

Constructor Detail

WebSocketFilterback to summary
public WebSocketFilter()
WebSocketFilterback to summary
public WebSocketFilter(long wsTimeoutInSeconds)

Method Detail

composeHandshakeErrorback to summary
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e)
doServerUpgradeback to summary
protected boolean doServerUpgrade(final FilterChainContext ctx, final HttpContent requestContent) throws IOException
handleHandshakeback to summary
protected NextAction handleHandshake(FilterChainContext ctx, HttpContent content) throws IOException

Implements abstract org.glassfish.grizzly.websockets.BaseWebSocketFilter.handleHandshake.

Doc from org.glassfish.grizzly.websockets.BaseWebSocketFilter.handleHandshake.

Handle websocket handshake

Annotations
@Override
handleServerHandshakeback to summary
private NextAction handleServerHandshake(final FilterChainContext ctx, final HttpContent requestContent) throws IOException

Handle server-side websocket handshake

Parameters
ctx:FilterChainContext

FilterChainContext

requestContent:HttpContent

HTTP message