| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| 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)Initiate close handshake with provided status code and optional reason phrase. |
| public default 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)Initiate close handshake with a provided |
| public void | |
| public void | |
| public Behavior | |
| public ByteBufferPool | |
| public SocketAddress | Returns: the SocketAddress for the local connection, or null if not supported by SessionThe Local Socket Address for the connection
Do not assume that this will return a |
| public List | Returns: the list of Negotiated Extension Configurations for this session.The negotiated WebSocket Extension Configurations for this session. |
| public String | |
| public Map | Returns: the immutable map of parametersThe parameter map (from URI Query) for the active session. |
| public String | Returns: the protocol version in use.The active |
| public SocketAddress | Returns: the SocketAddress for the remote connection, or null if not supported by SessionThe Remote Socket Address for the connection
Do not assume that this will return a |
| public URI | Returns: the absolute URI (including Query string)The active connection's Request URI. |
| public WebSocketComponents | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if connection is secure (similar in role toHttpServletRequest.isSecure())The active connection's Secure status indicator. |
| abort | back to summary |
|---|---|
| public void abort() Issue a harsh abort of the underlying connection. This will terminate the connection, without sending a websocket close frame. No WebSocket Protocol close handshake will be performed.
Once called, any read/write activity on the websocket from this point will be indeterminate.
This can result in the
Once the underlying connection has been determined to be closed, the | |
| close | back to summary |
|---|---|
| public void close(Callback callback) Initiate close handshake, no payload (no declared status code or reason phrase).
| |
| close | back to summary |
|---|---|
| public void close(int statusCode, String reason, Callback callback) Initiate close handshake with provided status code and optional reason phrase. | |
| close | back to summary |
|---|---|
| public default void close(CloseStatus closeStatus, Callback callback) Initiate close handshake with a provided
| |
| demand | back to summary |
|---|---|
| public void demand() Manages flow control by indicating demand for a WebSocket frame. A call to If a previous demand has not been fulfilled this will throw FrameHandler#onFrame(Frame, Callback).
| |
| flush | back to summary |
|---|---|
| public void flush(Callback callback) | |
| getBehavior | back to summary |
|---|---|
public Behavior getBehavior()
| |
| getByteBufferPool | back to summary |
|---|---|
public ByteBufferPool getByteBufferPool()
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() The Local Socket Address for the connection
Do not assume that this will return a
| |
| getNegotiatedExtensions | back to summary |
|---|---|
| public List The negotiated WebSocket Extension Configurations for this session.
| |
| getNegotiatedSubProtocol | back to summary |
|---|---|
| public String getNegotiatedSubProtocol() | |
| getParameterMap | back to summary |
|---|---|
| public Map The parameter map (from URI Query) for the active session. | |
| getProtocolVersion | back to summary |
|---|---|
| public String getProtocolVersion() The active
| |
| getRemoteAddress | back to summary |
|---|---|
| public SocketAddress getRemoteAddress() The Remote Socket Address for the connection
Do not assume that this will return a
| |
| getRequestURI | back to summary |
|---|---|
| public URI getRequestURI() The active connection's Request URI. This is the URI of the upgrade request and is typically http: or https: rather than the ws: or wss: scheme.
| |
| getWebSocketComponents | back to summary |
|---|---|
public WebSocketComponents getWebSocketComponents()
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| isInputOpen | back to summary |
|---|---|
public boolean isInputOpen()
| |
| isOutputOpen | back to summary |
|---|---|
public boolean isOutputOpen()
| |
| isRsv1Used | back to summary |
|---|---|
public boolean isRsv1Used()
| |
| isRsv2Used | back to summary |
|---|---|
public boolean isRsv2Used()
| |
| isRsv3Used | back to summary |
|---|---|
public boolean isRsv3Used()
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() The active connection's Secure status indicator.
| |
| Access | Constructor and Description |
|---|---|
| public |
| 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 |
| public void | demand()
Implements org. Manages flow control by indicating demand for a WebSocket frame. |
| public void | |
| public Behavior | |
| public ByteBufferPool | |
| public SocketAddress | getLocalAddress()
Implements org. The Local Socket Address for the connection
Do not assume that this will return a |
| public List | getNegotiatedExtensions()
Implements org. The negotiated WebSocket Extension Configurations for this session. |
| public String | |
| 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 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 | onFrame(Frame
the frame to process. frame, Callback the read completion. callback)Implements org. Process the incoming frame. |
| 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. |
| Empty | back to summary |
|---|---|
| public Empty() | |
| abort | back to summary |
|---|---|
| public void abort() Implements org. Doc from org. Issue a harsh abort of the underlying connection. This will terminate the connection, without sending a websocket close frame. No WebSocket Protocol close handshake will be performed.
Once called, any read/write activity on the websocket from this point will be indeterminate.
This can result in the
Once the underlying connection has been determined to be closed, the
| |
| close | back to summary |
|---|---|
| public void close(Callback callback) Implements org. Doc from org. Initiate close handshake, no payload (no declared status code or reason phrase). | |
| close | back to summary |
|---|---|
| public void close(int statusCode, String reason, Callback callback) Implements org. Doc from org. Initiate close handshake with provided status code and optional reason phrase.
| |
| close | back to summary |
|---|---|
| public void close(CloseStatus closeStatus, Callback callback) Overrides default org. Doc from org. Initiate close handshake with a provided
| |
| demand | back to summary |
|---|---|
| public void demand() Implements org. Doc from org. Manages flow control by indicating demand for a WebSocket frame. A call to If a previous demand has not been fulfilled this will throw FrameHandler#onFrame(Frame, Callback).
| |
| flush | back to summary |
|---|---|
| public void flush(Callback callback) Implements org.
| |
| getBehavior | back to summary |
|---|---|
| public Behavior getBehavior() Implements org.
| |
| getByteBufferPool | back to summary |
|---|---|
| public ByteBufferPool getByteBufferPool() Implements org.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements org. Doc from org. The Local Socket Address for the connection
Do not assume that this will return a
| |
| getNegotiatedExtensions | back to summary |
|---|---|
| public List Implements org. Doc from org. The negotiated WebSocket Extension Configurations for this session.
| |
| getNegotiatedSubProtocol | back to summary |
|---|---|
| public String getNegotiatedSubProtocol() Implements org.
| |
| getParameterMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. The parameter map (from URI Query) for the active session. | |
| getProtocolVersion | back to summary |
|---|---|
| public String getProtocolVersion() Implements org. Doc from org. The active | |
| getRemoteAddress | back to summary |
|---|---|
| public SocketAddress getRemoteAddress() Implements org. Doc from org. The Remote Socket Address for the connection
Do not assume that this will return a
| |
| getRequestURI | back to summary |
|---|---|
| public URI getRequestURI() Implements org. Doc from org. The active connection's Request URI. This is the URI of the upgrade request and is typically http: or https: rather than the ws: or wss: scheme. | |
| getWebSocketComponents | back to summary |
|---|---|
| public WebSocketComponents getWebSocketComponents() Implements org.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements org.
| |
| isInputOpen | back to summary |
|---|---|
| public boolean isInputOpen() Implements org.
| |
| isOutputOpen | back to summary |
|---|---|
| public boolean isOutputOpen() Implements org.
| |
| isRsv1Used | back to summary |
|---|---|
| public boolean isRsv1Used() Implements org.
| |
| isRsv2Used | back to summary |
|---|---|
| public boolean isRsv2Used() Implements org.
| |
| isRsv3Used | back to summary |
|---|---|
| public boolean isRsv3Used() Implements org.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements org. Doc from org. The active connection's Secure status indicator.
| |
| onFrame | back to summary |
|---|---|
| public void onFrame(Frame frame, Callback callback) Implements org. Doc from org. Process the incoming frame. Note if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation. Failure of the callback will propagate the failure back to the | |
| sendFrame | back to summary |
|---|---|
| public void sendFrame(Frame frame, Callback callback, boolean batch) Implements org. Doc from org. A frame, and optional callback, intended for the network layer. Note the frame can undergo many transformations in the various layers and extensions present in the implementation. If you are implementing a mutation, you are obliged to handle the incoming Callback appropriately. | |