WebSocketHandler implementation with empty methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterConnectionClosed(WebSocketSession session, CloseStatus status)
Implements org. Invoked after the WebSocket connection has been closed by either side, or after a transport error has occurred. |
| public void | afterConnectionEstablished(WebSocketSession session)
Implements org. Invoked after WebSocket negotiation has succeeded and the WebSocket connection is opened and ready for use. |
| protected void | |
| public void | handleMessage(WebSocketSession session, WebSocketMessage<?> message)
Implements org. Invoked when a new WebSocket message arrives. |
| protected void | |
| protected void | |
| public void | handleTransportError(WebSocketSession session, Throwable exception)
Implements org. Handle an error from the underlying WebSocket message transport. |
| public boolean | supportsPartialMessages()
Implements org. Whether the WebSocketHandler handles partial messages. |
| AbstractWebSocketHandler | back to summary |
|---|---|
| public AbstractWebSocketHandler() | |
| afterConnectionClosed | back to summary |
|---|---|
| public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception Implements org. Doc from org. Invoked after the WebSocket connection has been closed by either side, or after a transport error has occurred. Although the session may technically still be open, depending on the underlying implementation, sending messages at this point is discouraged and most likely will not succeed. | |
| afterConnectionEstablished | back to summary |
|---|---|
| public void afterConnectionEstablished(WebSocketSession session) throws Exception Implements org. Doc from org. Invoked after WebSocket negotiation has succeeded and the WebSocket connection is opened and ready for use. | |
| handleBinaryMessage | back to summary |
|---|---|
| protected void handleBinaryMessage(WebSocketSession session, BinaryMessage message) throws Exception | |
| handleMessage | back to summary |
|---|---|
| public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception Implements org. Doc from org. Invoked when a new WebSocket message arrives. | |
| handlePongMessage | back to summary |
|---|---|
| protected void handlePongMessage(WebSocketSession session, PongMessage message) throws Exception | |
| handleTextMessage | back to summary |
|---|---|
| protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception | |
| handleTransportError | back to summary |
|---|---|
| public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception Implements org. Doc from org. Handle an error from the underlying WebSocket message transport. | |
| supportsPartialMessages | back to summary |
|---|---|
| public boolean supportsPartialMessages() Implements org. Doc from org. Whether the WebSocketHandler handles partial messages. If this flag is set to
| |