WebSocketHandler to the standard WebSocket for Java API.
| Modifier and Type | Field and Description |
|---|---|
| private final WebSocketHandler | |
| private final Log | |
| private final StandardWebSocketSession |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| public void | onClose(Session
The session session, CloseReason Why the session was closed reason)Overrides jakarta. Event that is triggered when a session has closed. |
| public void | onError(Session
The session. session, Throwable The exception. exception)Overrides jakarta. Event that is triggered when a protocol error occurs. |
| public void | onOpen(final Session
The new session. session, EndpointConfig The configuration with which the Endpoint was configured. config)Implements abstract jakarta. Event that is triggered when a new session starts. |
| handler | back to summary |
|---|---|
| private final WebSocketHandler handler | |
| logger | back to summary |
|---|---|
| private final Log logger | |
| wsSession | back to summary |
|---|---|
| private final StandardWebSocketSession wsSession | |
| StandardWebSocketHandlerAdapter | back to summary |
|---|---|
| public StandardWebSocketHandlerAdapter(WebSocketHandler handler, StandardWebSocketSession wsSession) | |
| handleBinaryMessage | back to summary |
|---|---|
| private void handleBinaryMessage(Session session, ByteBuffer payload, boolean isLast) | |
| handlePongMessage | back to summary |
|---|---|
| private void handlePongMessage(Session session, ByteBuffer payload) | |
| handleTextMessage | back to summary |
|---|---|
| private void handleTextMessage(Session session, String payload, boolean isLast) | |
| onClose | back to summary |
|---|---|
| public void onClose(Session session, CloseReason reason) Overrides jakarta. Doc from jakarta. Event that is triggered when a session has closed.
| |
| onError | back to summary |
|---|---|
| public void onError(Session session, Throwable exception) Overrides jakarta. Doc from jakarta. Event that is triggered when a protocol error occurs. | |
| onOpen | back to summary |
|---|---|
| public void onOpen(final Session session, EndpointConfig config) Implements abstract jakarta. Doc from jakarta. Event that is triggered when a new session starts.
| |