Top Fields Constructors Methods
org.glassfish.grizzly.websockets

public Class WebSocketClientFilter

extends BaseWebSocketFilter
Class Inheritance
Imports
java.io.IOException, java.util.logging.Level, .Logger, org.glassfish.grizzly.Connection, .Grizzly, org.glassfish.grizzly.filterchain.FilterChainContext, .NextAction, org.glassfish.grizzly.http.HttpContent, .HttpResponsePacket

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static NextAction
public NextAction

Returns:

NextAction instruction for FilterChain, how it should continue the execution
handleConnect
(FilterChainContext ctx)

Overrides org.glassfish.grizzly.filterchain.BaseFilter.handleConnect.

Implements org.glassfish.grizzly.filterchain.Filter.handleConnect.

Method handles Grizzly Connection connect phase.

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

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Hides org.glassfish.grizzly.websockets.BaseWebSocketFilter.LOGGER.

Constructor Detail

WebSocketClientFilterback to summary
public WebSocketClientFilter()

Method Detail

handleClientHandShakeback to summary
private static NextAction handleClientHandShake(FilterChainContext ctx, HttpContent content)
handleConnectback to summary
public NextAction handleConnect(FilterChainContext ctx) throws IOException

Overrides org.glassfish.grizzly.filterchain.BaseFilter.handleConnect.

Implements org.glassfish.grizzly.filterchain.Filter.handleConnect.

Method handles Grizzly 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.

Parameters
ctx:FilterChainContext

FilterChainContext

Returns:NextAction

NextAction instruction for FilterChain, how it should continue the execution

Annotations
@Override
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