public class WebSocketAddOn extends Object implements AddOn
AddOn
for the HttpServer
.Constructor and Description |
---|
WebSocketAddOn() |
Modifier and Type | Method and Description |
---|---|
protected WebSocketFilter |
createWebSocketFilter() |
long |
getTimeoutInSeconds() |
void |
setTimeoutInSeconds(long timeout) |
void |
setup(NetworkListener networkListener,
FilterChainBuilder builder)
The method, which will be invoked by
HttpServer in order to
initialize the AddOn on the passed NetworkListener . |
public void setup(NetworkListener networkListener, FilterChainBuilder builder)
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
Filter
(s), which implement
AddOn's logic.setup
in interface AddOn
networkListener
- the NetworkListener
the addon is being
initialized on.builder
- the FilterChainBuilder
,
representing the NetworkListener
logic.public long getTimeoutInSeconds()
public void setTimeoutInSeconds(long timeout)
protected WebSocketFilter createWebSocketFilter()
Copyright © 2015 Oracle Corporation. All rights reserved.