Class WebSocketConstants

java.lang.Object
org.eclipse.jetty.websocket.core.WebSocketConstants

public final class WebSocketConstants extends Object
  • Field Details

    • SPEC_VERSION

      public static final int SPEC_VERSION
      See Also:
    • SPEC_VERSION_STRING

      public static final String SPEC_VERSION_STRING
    • DEFAULT_MAX_BINARY_MESSAGE_SIZE

      public static final int DEFAULT_MAX_BINARY_MESSAGE_SIZE
      The 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_SIZE
      The default maximum size of a text message that can be received.
      See Also:
    • DEFAULT_MAX_FRAME_SIZE

      public static final int DEFAULT_MAX_FRAME_SIZE
      The 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_SIZE
      The default input buffer size used to read from network/transport layer.
      See Also:
    • DEFAULT_OUTPUT_BUFFER_SIZE

      public static final int DEFAULT_OUTPUT_BUFFER_SIZE
      The 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_FRAMES
      The 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_FRAGMENT
      Whether frames are automatically fragmented to respect the maximum frame size.
      See Also:
    • DEFAULT_IDLE_TIMEOUT

      public static final Duration DEFAULT_IDLE_TIMEOUT
      The default duration that a websocket connection may be idle before being closed by the implementation.
    • DEFAULT_WRITE_TIMEOUT

      public static final Duration DEFAULT_WRITE_TIMEOUT
      The default maximum time a frame may be waiting to be sent.
    • MAGIC

      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).