Package | Description |
---|---|
org.springframework.messaging.simp.stomp |
Generic support for simple messaging protocols (like STOMP).
|
org.springframework.web.socket.messaging |
WebSocket integration for Spring's messaging module.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConnectionHandlingStompSession
A
StompSession that implements
TcpConnectionHandler in order to send and receive messages. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultStompSession
Default implementation of
ConnectionHandlingStompSession . |
Modifier and Type | Method and Description |
---|---|
ListenableFuture<StompSession> |
ReactorNettyTcpStompClient.connect(StompHeaders connectHeaders,
StompSessionHandler handler)
An overloaded version of
ReactorNettyTcpStompClient.connect(StompSessionHandler) that
accepts headers to use for the STOMP CONNECT frame. |
ListenableFuture<StompSession> |
ReactorNettyTcpStompClient.connect(StompSessionHandler handler)
Connect and notify the given
StompSessionHandler when connected
on the STOMP level. |
ListenableFuture<StompSession> |
ConnectionHandlingStompSession.getSessionFuture()
Return a future that will complete when the session is ready for use.
|
ListenableFuture<StompSession> |
DefaultStompSession.getSessionFuture() |
Modifier and Type | Method and Description |
---|---|
void |
StompSessionHandlerAdapter.afterConnected(StompSession session,
StompHeaders connectedHeaders)
This implementation is empty.
|
void |
StompSessionHandler.afterConnected(StompSession session,
StompHeaders connectedHeaders)
Invoked when the session is ready to use, i.e.
|
void |
StompSessionHandlerAdapter.handleException(StompSession session,
StompCommand command,
StompHeaders headers,
byte[] payload,
java.lang.Throwable exception)
This implementation is empty.
|
void |
StompSessionHandler.handleException(StompSession session,
StompCommand command,
StompHeaders headers,
byte[] payload,
java.lang.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
StompFrameHandler . |
void |
StompSessionHandlerAdapter.handleTransportError(StompSession session,
java.lang.Throwable exception)
This implementation is empty.
|
void |
StompSessionHandler.handleTransportError(StompSession session,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
ListenableFuture<StompSession> |
WebSocketStompClient.connect(java.lang.String url,
StompSessionHandler handler,
java.lang.Object... uriVars)
Connect to the given WebSocket URL and notify the given
StompSessionHandler
when connected on the STOMP level after the CONNECTED frame is received. |
ListenableFuture<StompSession> |
WebSocketStompClient.connect(java.lang.String url,
WebSocketHttpHeaders handshakeHeaders,
StompHeaders connectHeaders,
StompSessionHandler handler,
java.lang.Object... uriVariables)
An overloaded version of
WebSocketStompClient.connect(String, StompSessionHandler, Object...) that also accepts
WebSocketHttpHeaders to use for the WebSocket handshake and
StompHeaders for the STOMP CONNECT frame. |
ListenableFuture<StompSession> |
WebSocketStompClient.connect(java.lang.String url,
WebSocketHttpHeaders handshakeHeaders,
StompSessionHandler handler,
java.lang.Object... uriVariables)
An overloaded version of
WebSocketStompClient.connect(String, StompSessionHandler, Object...) that also
accepts WebSocketHttpHeaders to use for the WebSocket handshake. |
ListenableFuture<StompSession> |
WebSocketStompClient.connect(java.net.URI url,
WebSocketHttpHeaders handshakeHeaders,
StompHeaders connectHeaders,
StompSessionHandler sessionHandler)
An overloaded version of
WebSocketStompClient.connect(String, WebSocketHttpHeaders, StompSessionHandler, Object...)
that accepts a fully prepared URI . |