Top Fields Constructors Methods
org.eclipse.jetty.websocket.core

public final Class WebSocketConstants

extends Object
Class Inheritance
Imports
java.nio.charset.StandardCharsets, java.time.Duration

Field Summary

Modifier and TypeField and Description
public static final boolean
DEFAULT_AUTO_FRAGMENT

Whether frames are automatically fragmented to respect the maximum frame size.

public static final Duration
DEFAULT_IDLE_TIMEOUT

The default duration that a websocket connection may be idle before being closed by the implementation.

public static final int
DEFAULT_INPUT_BUFFER_SIZE

The default input buffer size used to read from network/transport layer.

public static final int
DEFAULT_MAX_BINARY_MESSAGE_SIZE

The default maximum size of a binary message that can be received.

public static final int
DEFAULT_MAX_FRAME_SIZE

The default maximum payload size of any WebSocket frame that can be received.

public static final int
DEFAULT_MAX_OUTGOING_FRAMES

The default maximum number of data frames allowed to be waiting to be sent at any one time.

public static final int
DEFAULT_MAX_TEXT_MESSAGE_SIZE

The default maximum size of a text message that can be received.

public static final int
DEFAULT_OUTPUT_BUFFER_SIZE

The default output buffer size used to write to the network/transport layer.

public static final Duration
DEFAULT_WRITE_TIMEOUT

The default maximum time a frame may be waiting to be sent.

public static final byte[]
MAGIC

Globally Unique Identifier for use in WebSocket handshake within Sec-WebSocket-Accept and Sec-WebSocket-Key HTTP headers.

public static final int
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_AUTO_FRAGMENTback to summary
public static final boolean DEFAULT_AUTO_FRAGMENT

Whether frames are automatically fragmented to respect the maximum frame size.

DEFAULT_IDLE_TIMEOUTback to summary
public static final Duration DEFAULT_IDLE_TIMEOUT

The default duration that a websocket connection may be idle before being closed by the implementation.

DEFAULT_INPUT_BUFFER_SIZEback to summary
public static final int DEFAULT_INPUT_BUFFER_SIZE

The default input buffer size used to read from network/transport layer.

DEFAULT_MAX_BINARY_MESSAGE_SIZEback to summary
public static final int DEFAULT_MAX_BINARY_MESSAGE_SIZE

The default maximum size of a binary message that can be received.

DEFAULT_MAX_FRAME_SIZEback to summary
public static final int DEFAULT_MAX_FRAME_SIZE

The default maximum payload size of any WebSocket frame that can be received.

DEFAULT_MAX_OUTGOING_FRAMESback to summary
public static final int DEFAULT_MAX_OUTGOING_FRAMES

The default maximum number of data frames allowed to be waiting to be sent at any one time.

DEFAULT_MAX_TEXT_MESSAGE_SIZEback to summary
public static final int DEFAULT_MAX_TEXT_MESSAGE_SIZE

The default maximum size of a text message that can be received.

DEFAULT_OUTPUT_BUFFER_SIZEback to summary
public static final int DEFAULT_OUTPUT_BUFFER_SIZE

The default output buffer size used to write to the network/transport layer.

DEFAULT_WRITE_TIMEOUTback to summary
public static final Duration DEFAULT_WRITE_TIMEOUT

The default maximum time a frame may be waiting to be sent.

MAGICback to summary
public static final byte[] MAGIC

Globally Unique Identifier for use in WebSocket handshake within Sec-WebSocket-Accept and Sec-WebSocket-Key HTTP headers.

See Opening Handshake (Section 1.3).

SPEC_VERSIONback to summary
public static final int SPEC_VERSION
SPEC_VERSION_STRINGback to summary
public static final String SPEC_VERSION_STRING
WEBSOCKET_WRAPPED_REQUEST_ATTRIBUTEback to summary
public static final String WEBSOCKET_WRAPPED_REQUEST_ATTRIBUTE
WEBSOCKET_WRAPPED_RESPONSE_ATTRIBUTEback to summary
public static final String WEBSOCKET_WRAPPED_RESPONSE_ATTRIBUTE

Constructor Detail

WebSocketConstantsback to summary
private WebSocketConstants()