WebSocketServerHandshaker.
| Modifier and Type | Field and Description |
|---|---|
| private final WebSocketDecoderConfig | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | WebSocketServerHandshakerFactory(String
URL for web socket communications. e.g "ws://myhost.com/mypath".
Subsequent web socket frames will be sent to this URL. webSocketURL, String CSV of supported protocols. Null if sub protocols not supported. subprotocols, boolean Allow extensions to be used in the reserved bits of the web socket frame allowExtensions)Constructor specifying the destination web socket location |
| public | WebSocketServerHandshakerFactory(String
URL for web socket communications. e.g "ws://myhost.com/mypath".
Subsequent web socket frames will be sent to this URL. webSocketURL, String CSV of supported protocols. Null if sub protocols not supported. subprotocols, boolean Allow extensions to be used in the reserved bits of the web socket frame allowExtensions, int Maximum allowable frame payload length. Setting this value to your application's
requirement may reduce denial of service attacks using long data frames. maxFramePayloadLength)Constructor specifying the destination web socket location |
| public | WebSocketServerHandshakerFactory(String
URL for web socket communications. e.g "ws://myhost.com/mypath".
Subsequent web socket frames will be sent to this URL. webSocketURL, String CSV of supported protocols. Null if sub protocols not supported. subprotocols, boolean Allow extensions to be used in the reserved bits of the web socket frame allowExtensions, int Maximum allowable frame payload length. Setting this value to your application's
requirement may reduce denial of service attacks using long data frames. maxFramePayloadLength, boolean When set to true, frames which are not masked properly according to the standard will still be
accepted. allowMaskMismatch)Constructor specifying the destination web socket location |
| public | WebSocketServerHandshakerFactory(String
URL for web socket communications. e.g "ws://myhost.com/mypath".
Subsequent web socket frames will be sent to this URL. webSocketURL, String CSV of supported protocols. Null if sub protocols not supported. subprotocols, WebSocketDecoderConfig Frames decoder options. decoderConfig)Constructor specifying the destination web socket location |
| Modifier and Type | Method and Description |
|---|---|
| public WebSocketServerHandshaker | Returns: A new WebSocketServerHandshaker for the requested web socket version. Null if web socket version is not supported.Instances a new handshaker |
| public static Future | sendUnsupportedVersionResponse(Channel channel)
Return that we need cannot not support the web socket version |
| public static void | sendUnsupportedWebSocketVersionResponse(Channel channel)
Deprecated
use
sendUnsupportedVersionResponse(Channel)
|
| decoderConfig | back to summary |
|---|---|
| private final WebSocketDecoderConfig decoderConfig | |
| subprotocols | back to summary |
|---|---|
| private final String subprotocols | |
| webSocketURL | back to summary |
|---|---|
| private final String webSocketURL | |
| WebSocketServerHandshakerFactory | back to summary |
|---|---|
| public WebSocketServerHandshakerFactory(String webSocketURL, String subprotocols, boolean allowExtensions) Constructor specifying the destination web socket location
| |
| WebSocketServerHandshakerFactory | back to summary |
|---|---|
| public WebSocketServerHandshakerFactory(String webSocketURL, String subprotocols, boolean allowExtensions, int maxFramePayloadLength) Constructor specifying the destination web socket location
| |
| WebSocketServerHandshakerFactory | back to summary |
|---|---|
| public WebSocketServerHandshakerFactory(String webSocketURL, String subprotocols, boolean allowExtensions, int maxFramePayloadLength, boolean allowMaskMismatch) Constructor specifying the destination web socket location
| |
| WebSocketServerHandshakerFactory | back to summary |
|---|---|
| public WebSocketServerHandshakerFactory(String webSocketURL, String subprotocols, WebSocketDecoderConfig decoderConfig) Constructor specifying the destination web socket location
| |
| newHandshaker | back to summary |
|---|---|
| public WebSocketServerHandshaker newHandshaker(HttpRequest req) Instances a new handshaker
| |
| sendUnsupportedVersionResponse | back to summary |
|---|---|
| public static Future Return that we need cannot not support the web socket version | |
| sendUnsupportedWebSocketVersionResponse | back to summary |
|---|---|
| public static void sendUnsupportedWebSocketVersionResponse(Channel channel)
Deprecated
| |