Top Description Fields Constructors Methods
org.glassfish.grizzly.websockets

public Class WebSocketAddOn

extends Object
implements AddOn
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.server.AddOn
Imports
org.glassfish.grizzly.filterchain.FilterChainBuilder, org.glassfish.grizzly.http.server.AddOn, .HttpServer, .HttpServerFilter, .NetworkListener

WebSockets AddOn for the HttpServer.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected WebSocketFilter
public long
public void
setTimeoutInSeconds(long timeout)

public void
setup(NetworkListener networkListener, FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by HttpServer in order to initialize the AddOn on the passed NetworkListener.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

timeoutback to summary
private long timeout

Constructor Detail

WebSocketAddOnback to summary
public WebSocketAddOn()

Method Detail

createWebSocketFilterback to summary
protected WebSocketFilter createWebSocketFilter()
getTimeoutInSecondsback to summary
public long getTimeoutInSeconds()
setTimeoutInSecondsback to summary
public void setTimeoutInSeconds(long timeout)
setupback to summary
public void setup(NetworkListener networkListener, FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

Doc from org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by HttpServer in order to initialize the AddOn on the passed NetworkListener. Most of the time the AddOn implementation will update the passed NetworkListener's FilterChainBuilder by adding custom org.glassfish.grizzly.filterchain.Filter(s), which implement AddOn's logic.

Annotations
@Override