Package org.eclipse.jetty.websocket.core
Class WebSocketConstants
java.lang.Object
org.eclipse.jetty.websocket.core.WebSocketConstants
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Whether frames are automatically fragmented to respect the maximum frame size.static final Duration
The default duration that a websocket connection may be idle before being closed by the implementation.static final int
The default input buffer size used to read from network/transport layer.static final int
The default maximum size of a binary message that can be received.static final int
The default maximum payload size of any WebSocket frame that can be received.static final int
The default maximum number of data frames allowed to be waiting to be sent at any one time.static final int
The default maximum size of a text message that can be received.static final int
The default output buffer size used to write to the network/transport layer.static final Duration
The default maximum time a frame may be waiting to be sent.static final byte[]
Globally Unique Identifier for use in WebSocket handshake withinSec-WebSocket-Accept
andSec-WebSocket-Key
HTTP headers.static final int
static final String
-
Method Summary
-
Field Details
-
SPEC_VERSION
public static final int SPEC_VERSION- See Also:
-
SPEC_VERSION_STRING
-
DEFAULT_MAX_BINARY_MESSAGE_SIZE
public static final int DEFAULT_MAX_BINARY_MESSAGE_SIZEThe default maximum size of a binary message that can be received.- See Also:
-
DEFAULT_MAX_TEXT_MESSAGE_SIZE
public static final int DEFAULT_MAX_TEXT_MESSAGE_SIZEThe default maximum size of a text message that can be received.- See Also:
-
DEFAULT_MAX_FRAME_SIZE
public static final int DEFAULT_MAX_FRAME_SIZEThe default maximum payload size of any WebSocket frame that can be received.- See Also:
-
DEFAULT_INPUT_BUFFER_SIZE
public static final int DEFAULT_INPUT_BUFFER_SIZEThe default input buffer size used to read from network/transport layer.- See Also:
-
DEFAULT_OUTPUT_BUFFER_SIZE
public static final int DEFAULT_OUTPUT_BUFFER_SIZEThe default output buffer size used to write to the network/transport layer.- See Also:
-
DEFAULT_MAX_OUTGOING_FRAMES
public static final int DEFAULT_MAX_OUTGOING_FRAMESThe default maximum number of data frames allowed to be waiting to be sent at any one time.- See Also:
-
DEFAULT_AUTO_FRAGMENT
public static final boolean DEFAULT_AUTO_FRAGMENTWhether frames are automatically fragmented to respect the maximum frame size.- See Also:
-
DEFAULT_IDLE_TIMEOUT
The default duration that a websocket connection may be idle before being closed by the implementation. -
DEFAULT_WRITE_TIMEOUT
The default maximum time a frame may be waiting to be sent. -
MAGIC
public static final byte[] MAGICGlobally Unique Identifier for use in WebSocket handshake within
Sec-WebSocket-Accept
andSec-WebSocket-Key
HTTP headers.
-