WebSocketHandlerDecorator that adds logging to WebSocket lifecycle events.
| Access | Constructor and Description |
|---|---|
| public |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| LoggingWebSocketHandlerDecorator | back to summary |
|---|---|
| public LoggingWebSocketHandlerDecorator(WebSocketHandler delegate) | |
| afterConnectionClosed | back to summary |
|---|---|
| public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception Overrides org. 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 Overrides org. Implements org. Doc from org. Invoked after WebSocket negotiation has succeeded and the WebSocket connection is opened and ready for use. | |
| handleMessage | back to summary |
|---|---|
| public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception Overrides org. Implements org. Doc from org. Invoked when a new WebSocket message arrives. | |
| handleTransportError | back to summary |
|---|---|
| public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception Overrides org. Implements org. Doc from org. Handle an error from the underlying WebSocket message transport. | |