This contract also extends StompFrameHandler in order to handle
STOMP ERROR frames received from the broker.
Implementations of this interface should consider extending
StompSessionHandlerAdapter.
StompSessionHandlerAdapter
| Modifier and Type | Method and Description |
|---|---|
| public void | afterConnected(StompSession
the client STOMP session session, StompHeaders the STOMP CONNECTED frame headers connectedHeaders)Invoked when the session is ready to use, i.e. after the underlying transport (TCP, WebSocket) is connected and a STOMP CONNECTED frame is received from the broker. |
| public void | handleException(StompSession
the client STOMP session session, StompCommand the STOMP command of the frame command, StompHeaders the headers headers, byte[] the raw payload payload, Throwable the exception exception)Handle any exception arising while processing a STOMP frame such as a
failure to convert the payload or an unhandled exception in the
application |
| public void | handleTransportError(StompSession
the client STOMP session session, Throwable the exception that occurred exception)Handle a low level transport error which could be an I/O error or a failure to encode or decode a STOMP message. |
| afterConnected | back to summary |
|---|---|
| public void afterConnected(StompSession session, StompHeaders connectedHeaders) Invoked when the session is ready to use, i.e. after the underlying transport (TCP, WebSocket) is connected and a STOMP CONNECTED frame is received from the broker.
| |
| handleException | back to summary |
|---|---|
| public void handleException(StompSession session, StompCommand command, StompHeaders headers, byte[] payload, Throwable exception) Handle any exception arising while processing a STOMP frame such as a
failure to convert the payload or an unhandled exception in the
application
| |
| handleTransportError | back to summary |
|---|---|
| public void handleTransportError(StompSession session, Throwable exception) Handle a low level transport error which could be an I/O error or a failure to encode or decode a STOMP message. Note that
| |