public class WebSocketServerPipelineConfigurator<R,W> extends java.lang.Object implements PipelineConfigurator<R,W>
WebSocketServerHandler
for WebSocket handshake orchestration. Once handshake is done, the channel is dynamically reconfigured.| Constructor and Description |
|---|
WebSocketServerPipelineConfigurator(java.lang.String webSocketURI,
java.lang.String subprotocols,
boolean allowExtensions,
int maxFramePayloadLength,
boolean messageAggregator) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
A callback to configure the passed
pipeline. |
public WebSocketServerPipelineConfigurator(java.lang.String webSocketURI,
java.lang.String subprotocols,
boolean allowExtensions,
int maxFramePayloadLength,
boolean messageAggregator)
public void configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
PipelineConfiguratorpipeline. This will be invoked everytime a new netty pipeline is
created, which is whenever a new channel is established.configureNewPipeline in interface PipelineConfigurator<R,W>pipeline - The pipeline to configure.