Package org.glassfish.grizzly.websockets
Class WebSocketAddOn
java.lang.Object
org.glassfish.grizzly.websockets.WebSocketAddOn
- All Implemented Interfaces:
AddOn
WebSockets
AddOn for the HttpServer.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WebSocketFilterlongvoidsetTimeoutInSeconds(long timeout) voidsetup(NetworkListener networkListener, FilterChainBuilder builder) The method, which will be invoked byHttpServerin order to initialize the AddOn on the passedNetworkListener.
-
Constructor Details
-
WebSocketAddOn
public WebSocketAddOn()
-
-
Method Details
-
setup
The method, which will be invoked byHttpServerin order to initialize the AddOn on the passedNetworkListener. Most of the time the AddOn implementation will update the passedNetworkListener'sFilterChainBuilderby adding customFilter(s), which implement AddOn's logic.- Specified by:
setupin interfaceAddOn- Parameters:
networkListener- theNetworkListenerthe addon is being initialized on.builder- theFilterChainBuilder, representing theNetworkListenerlogic.
-
getTimeoutInSeconds
public long getTimeoutInSeconds() -
setTimeoutInSeconds
public void setTimeoutInSeconds(long timeout) -
createWebSocketFilter
-