Class WebSocketDecoderConfig.Builder
- java.lang.Object
-
- io.netty.handler.codec.http.websocketx.WebSocketDecoderConfig.Builder
-
- Enclosing class:
- WebSocketDecoderConfig
public static final class WebSocketDecoderConfig.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowExtensions
private boolean
allowMaskMismatch
private boolean
closeOnProtocolViolation
private boolean
expectMaskedFrames
private int
maxFramePayloadLength
private boolean
withUTF8Validator
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder(WebSocketDecoderConfig decoderConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketDecoderConfig.Builder
allowExtensions(boolean allowExtensions)
WebSocketDecoderConfig.Builder
allowMaskMismatch(boolean allowMaskMismatch)
WebSocketDecoderConfig
build()
WebSocketDecoderConfig.Builder
closeOnProtocolViolation(boolean closeOnProtocolViolation)
WebSocketDecoderConfig.Builder
expectMaskedFrames(boolean expectMaskedFrames)
WebSocketDecoderConfig.Builder
maxFramePayloadLength(int maxFramePayloadLength)
WebSocketDecoderConfig.Builder
withUTF8Validator(boolean withUTF8Validator)
-
-
-
Field Detail
-
maxFramePayloadLength
private int maxFramePayloadLength
-
expectMaskedFrames
private boolean expectMaskedFrames
-
allowMaskMismatch
private boolean allowMaskMismatch
-
allowExtensions
private boolean allowExtensions
-
closeOnProtocolViolation
private boolean closeOnProtocolViolation
-
withUTF8Validator
private boolean withUTF8Validator
-
-
Constructor Detail
-
Builder
private Builder(WebSocketDecoderConfig decoderConfig)
-
-
Method Detail
-
maxFramePayloadLength
public WebSocketDecoderConfig.Builder maxFramePayloadLength(int maxFramePayloadLength)
-
expectMaskedFrames
public WebSocketDecoderConfig.Builder expectMaskedFrames(boolean expectMaskedFrames)
-
allowMaskMismatch
public WebSocketDecoderConfig.Builder allowMaskMismatch(boolean allowMaskMismatch)
-
allowExtensions
public WebSocketDecoderConfig.Builder allowExtensions(boolean allowExtensions)
-
closeOnProtocolViolation
public WebSocketDecoderConfig.Builder closeOnProtocolViolation(boolean closeOnProtocolViolation)
-
withUTF8Validator
public WebSocketDecoderConfig.Builder withUTF8Validator(boolean withUTF8Validator)
-
build
public WebSocketDecoderConfig build()
-
-