程序包 | 说明 |
---|---|
io.netty.handler.codec.http.websocketx |
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
|
限定符和类型 | 方法和说明 |
---|---|
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.allowExtensions(boolean allowExtensions) |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.allowMaskMismatch(boolean allowMaskMismatch) |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.checkStartsWith(boolean checkStartsWith)
true to handle all requests, where URI path component starts from
WebSocketServerProtocolConfig.websocketPath() , false for exact match (default). |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.closeOnProtocolViolation(boolean closeOnProtocolViolation) |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.decoderConfig(WebSocketDecoderConfig decoderConfig)
Frames decoder configuration.
|
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.dropPongFrames(boolean dropPongFrames)
true if pong frames should not be forwarded |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.expectMaskedFrames(boolean expectMaskedFrames) |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.forceCloseTimeoutMillis(long forceCloseTimeoutMillis)
Close the connection if it was not closed by the client after timeout specified
|
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.handleCloseFrames(boolean handleCloseFrames)
true if close frames should not be forwarded and just close the channel |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.handshakeTimeoutMillis(long handshakeTimeoutMillis)
Handshake timeout in mills, when handshake timeout, will trigger user
event
WebSocketClientProtocolHandler.ClientHandshakeStateEvent.HANDSHAKE_TIMEOUT |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.maxFramePayloadLength(int maxFramePayloadLength) |
static WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.newBuilder() |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.sendCloseFrame(WebSocketCloseStatus sendCloseFrame)
Close frame to send, when close frame was not send manually.
|
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.subprotocols(java.lang.String subprotocols)
CSV of supported protocols
|
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.toBuilder() |
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.websocketPath(java.lang.String websocketPath)
URI path component to handle websocket upgrade requests on.
|
WebSocketServerProtocolConfig.Builder |
WebSocketServerProtocolConfig.Builder.withUTF8Validator(boolean withUTF8Validator) |