Class WebSocketServerProtocolConfig.Builder
- java.lang.Object
- 
- io.netty.handler.codec.http.websocketx.WebSocketServerProtocolConfig.Builder
 
- 
- Enclosing class:
- WebSocketServerProtocolConfig
 
 public static final class WebSocketServerProtocolConfig.Builder extends java.lang.Object
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketServerProtocolConfig.BuilderallowExtensions(boolean allowExtensions)WebSocketServerProtocolConfig.BuilderallowMaskMismatch(boolean allowMaskMismatch)WebSocketServerProtocolConfigbuild()Build unmodifiable server protocol configuration.WebSocketServerProtocolConfig.BuildercheckStartsWith(boolean checkStartsWith)trueto handle all requests, where URI path component starts fromWebSocketServerProtocolConfig.websocketPath(),falsefor exact match (default).WebSocketServerProtocolConfig.BuildercloseOnProtocolViolation(boolean closeOnProtocolViolation)WebSocketServerProtocolConfig.BuilderdecoderConfig(WebSocketDecoderConfig decoderConfig)Frames decoder configuration.WebSocketServerProtocolConfig.BuilderdropPongFrames(boolean dropPongFrames)trueif pong frames should not be forwardedWebSocketServerProtocolConfig.BuilderexpectMaskedFrames(boolean expectMaskedFrames)WebSocketServerProtocolConfig.BuilderforceCloseTimeoutMillis(long forceCloseTimeoutMillis)Close the connection if it was not closed by the client after timeout specifiedWebSocketServerProtocolConfig.BuilderhandleCloseFrames(boolean handleCloseFrames)trueif close frames should not be forwarded and just close the channelWebSocketServerProtocolConfig.BuilderhandshakeTimeoutMillis(long handshakeTimeoutMillis)Handshake timeout in mills, when handshake timeout, will trigger user eventWebSocketClientProtocolHandler.ClientHandshakeStateEvent.HANDSHAKE_TIMEOUTWebSocketServerProtocolConfig.BuildermaxFramePayloadLength(int maxFramePayloadLength)WebSocketServerProtocolConfig.BuildersendCloseFrame(WebSocketCloseStatus sendCloseFrame)Close frame to send, when close frame was not send manually.WebSocketServerProtocolConfig.Buildersubprotocols(java.lang.String subprotocols)CSV of supported protocolsWebSocketServerProtocolConfig.BuilderwebsocketPath(java.lang.String websocketPath)URI path component to handle websocket upgrade requests on.WebSocketServerProtocolConfig.BuilderwithUTF8Validator(boolean withUTF8Validator)
 
- 
- 
- 
Method Detail- 
websocketPathpublic WebSocketServerProtocolConfig.Builder websocketPath(java.lang.String websocketPath) URI path component to handle websocket upgrade requests on.
 - 
subprotocolspublic WebSocketServerProtocolConfig.Builder subprotocols(java.lang.String subprotocols) CSV of supported protocols
 - 
checkStartsWithpublic WebSocketServerProtocolConfig.Builder checkStartsWith(boolean checkStartsWith) trueto handle all requests, where URI path component starts fromWebSocketServerProtocolConfig.websocketPath(),falsefor exact match (default).
 - 
handshakeTimeoutMillispublic WebSocketServerProtocolConfig.Builder handshakeTimeoutMillis(long handshakeTimeoutMillis) Handshake timeout in mills, when handshake timeout, will trigger user eventWebSocketClientProtocolHandler.ClientHandshakeStateEvent.HANDSHAKE_TIMEOUT
 - 
forceCloseTimeoutMillispublic WebSocketServerProtocolConfig.Builder forceCloseTimeoutMillis(long forceCloseTimeoutMillis) Close the connection if it was not closed by the client after timeout specified
 - 
handleCloseFramespublic WebSocketServerProtocolConfig.Builder handleCloseFrames(boolean handleCloseFrames) trueif close frames should not be forwarded and just close the channel
 - 
sendCloseFramepublic WebSocketServerProtocolConfig.Builder sendCloseFrame(WebSocketCloseStatus sendCloseFrame) Close frame to send, when close frame was not send manually. Ornullto disable proper close.
 - 
dropPongFramespublic WebSocketServerProtocolConfig.Builder dropPongFrames(boolean dropPongFrames) trueif pong frames should not be forwarded
 - 
decoderConfigpublic WebSocketServerProtocolConfig.Builder decoderConfig(WebSocketDecoderConfig decoderConfig) Frames decoder configuration.
 - 
maxFramePayloadLengthpublic WebSocketServerProtocolConfig.Builder maxFramePayloadLength(int maxFramePayloadLength) 
 - 
expectMaskedFramespublic WebSocketServerProtocolConfig.Builder expectMaskedFrames(boolean expectMaskedFrames) 
 - 
allowMaskMismatchpublic WebSocketServerProtocolConfig.Builder allowMaskMismatch(boolean allowMaskMismatch) 
 - 
allowExtensionspublic WebSocketServerProtocolConfig.Builder allowExtensions(boolean allowExtensions) 
 - 
closeOnProtocolViolationpublic WebSocketServerProtocolConfig.Builder closeOnProtocolViolation(boolean closeOnProtocolViolation) 
 - 
withUTF8Validatorpublic WebSocketServerProtocolConfig.Builder withUTF8Validator(boolean withUTF8Validator) 
 - 
buildpublic WebSocketServerProtocolConfig build() Build unmodifiable server protocol configuration.
 
- 
 
-