Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make WebSocketDecoderConfig not final #13601

Open
wants to merge 1 commit into
base: 4.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -20,10 +20,9 @@
/**
* Frames decoder configuration.
*/
public final class WebSocketDecoderConfig {
public class WebSocketDecoderConfig {

static final WebSocketDecoderConfig DEFAULT =
new WebSocketDecoderConfig(65536, true, false, false, true, true);
static final WebSocketDecoderConfig DEFAULT = new WebSocketDecoderConfig();

private final int maxFramePayloadLength;
private final boolean expectMaskedFrames;
Expand All @@ -32,6 +31,13 @@ public final class WebSocketDecoderConfig {
private final boolean closeOnProtocolViolation;
private final boolean withUTF8Validator;

/**
* Default Constructor
*/
protected WebSocketDecoderConfig() {
this(65536, true, false, false, true, true);
}

/**
* Constructor
*
Expand Down