| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Behavior | |
| private ClassLoader | |
| private final WebSocketComponents | |
| private WebSocketConnection | |
| private final ExtensionStack | |
| private final WebSocketCoreSession. | |
| private final FrameHandler | |
| private Duration | |
| private int | |
| private static final Logger | |
| private long | |
| private long | |
| private int | |
| private long | |
| private final Negotiated | |
| private static final CloseStatus | |
| private final AtomicInteger | |
| private int | |
| private final WebSocketSessionState | |
| private Duration |
| Access | Constructor and Description |
|---|---|
| public | WebSocketCoreSession(FrameHandler handler, Behavior behavior, Negotiated negotiated, WebSocketComponents components)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | abort()
Implements org. Issue a harsh abort of the underlying connection. |
| public void | close(Callback
the callback to track close frame sent (or failed). callback)Implements org. Initiate close handshake, no payload (no declared status code or reason phrase). |
| public void | close(int
the status code (should be a valid status code that can be sent). statusCode, String optional reason phrase (will be truncated automatically by implementation to fit within limits of protocol). reason, Callback the callback to track close frame sent (or failed). callback)Implements org. Initiate close handshake with provided status code and optional reason phrase. |
| public void | close(CloseStatus
the close status containing (statusCode, reason, and optional closeStatus, Callback Throwable cause).the callback to track close frame sent (or failed). callback)Overrides default org. Initiate close handshake with a provided |
| private void | |
| public void | demand()
Implements org. Manages flow control by indicating demand for a WebSocket frame. |
| public String | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| public void | |
| public Behavior | |
| public ByteBufferPool | |
| public ClassLoader | |
| public WebSocketConnection | |
| public Executor | |
| public ExtensionStack | |
| public FrameHandler | |
| public Duration | getIdleTimeout()
Implements org. Get the Idle Timeout |
| public int | |
| public SocketAddress | getLocalAddress()
Implements org. The Local Socket Address for the connection
Do not assume that this will return a |
| public long | |
| public long | |
| public int | getMaxOutgoingFrames()
Implements org. Get the maximum number of data frames allowed to be waiting to be sent at any one time. |
| public long | |
| public List | getNegotiatedExtensions()
Implements org. The negotiated WebSocket Extension Configurations for this session. |
| public String | |
| public int | |
| public Map | getParameterMap()
Implements org. The parameter map (from URI Query) for the active session. |
| public String | getProtocolVersion()
Implements org. The active |
| public SocketAddress | getRemoteAddress()
Implements org. The Remote Socket Address for the connection
Do not assume that this will return a |
| public URI | getRequestURI()
Implements org. The active connection's Request URI. |
| public WebSocketComponents | |
| public Duration | getWriteTimeout()
Implements org. Get the Write Timeout |
| protected void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isSecure()
Implements org. The active connection's Secure status indicator. |
| public void | onEof()
Used to notify the |
| public void | onFrame(Frame
the frame to process. frame, Callback the read completion. callback)Implements org. Process the incoming frame. |
| public void | |
| public void | processConnectionError(Throwable
the cause cause, Callback the callback on completion of error handling callback)Process an Error that originated from the connection. |
| public void | processHandlerError(Throwable
the cause cause, Callback the callback on completion of error handling callback)Process an Error that originated from the handler. |
| public void | sendFrame(Frame
the frame to eventually write to the network layer. frame, Callback the callback to notify when the frame is written. callback, boolean the batch mode requested by the sender. batch)Implements org. A frame, and optional callback, intended for the network layer. |
| public void | setAutoFragment(boolean autoFragment)
Implements org.
|
| public void | |
| public void | setIdleTimeout(Duration
the timeout duration (timeout <= 0 implies an infinite timeout) timeout)Implements org. Set the Idle Timeout. |
| public void | setInputBufferSize(int inputBufferSize)
Implements org.
|
| public void | setMaxBinaryMessageSize(long maxSize)
Implements org.
|
| public void | setMaxFrameSize(long maxFrameSize)
Implements org.
|
| public void | setMaxOutgoingFrames(int
the max number of frames. maxOutgoingFrames)Implements org. Set the maximum number of data frames allowed to be waiting to be sent at any one time. |
| public void | setMaxTextMessageSize(long maxSize)
Implements org.
|
| public void | setOutputBufferSize(int outputBufferSize)
Implements org.
|
| public void | setWebSocketConnection(WebSocketConnection
the websocket connection. connection)Used to set the WebSocketConnection on this |
| public void | setWriteTimeout(Duration
the timeout duration (timeout <= 0 implies an infinite timeout) timeout)Implements org. Set the Write Timeout. |
| public String |