接口的使用
org.springframework.messaging.simp.stomp.StompSessionHandler
使用StompSessionHandler的程序包 程序包 说明 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.org.springframework.messaging.simp.stomp中StompSessionHandler的使用
实现StompSessionHandler的org.springframework.messaging.simp.stomp中的类 修饰符和类型 类 说明 class
StompSessionHandlerAdapter
Abstract adapter class forStompSessionHandler
with mostly empty implementation methods except forStompSessionHandlerAdapter.getPayloadType(org.springframework.messaging.simp.stomp.StompHeaders)
which returns String as the default Object type expected for STOMP ERROR frame payloads.返回StompSessionHandler的org.springframework.messaging.simp.stomp中的方法 修饰符和类型 方法 说明 StompSessionHandler
DefaultStompSession. getSessionHandler()
Return the configured session handler.参数类型为StompSessionHandler的org.springframework.messaging.simp.stomp中的方法 修饰符和类型 方法 说明 ListenableFuture<StompSession>
ReactorNettyTcpStompClient. connect(StompHeaders connectHeaders, StompSessionHandler handler)
An overloaded version ofReactorNettyTcpStompClient.connect(StompSessionHandler)
that accepts headers to use for the STOMP CONNECT frame.ListenableFuture<StompSession>
ReactorNettyTcpStompClient. connect(StompSessionHandler handler)
Connect and notify the givenStompSessionHandler
when connected on the STOMP level.protected ConnectionHandlingStompSession
StompClientSupport. createSession(StompHeaders connectHeaders, StompSessionHandler handler)
Factory method for create and configure a new session.参数类型为StompSessionHandler的org.springframework.messaging.simp.stomp中的构造器 构造器 说明 DefaultStompSession(StompSessionHandler sessionHandler, StompHeaders connectHeaders)
Create a new session.org.springframework.web.socket.messaging中StompSessionHandler的使用
参数类型为StompSessionHandler的org.springframework.web.socket.messaging中的方法 修饰符和类型 方法 说明 ListenableFuture<StompSession>
WebSocketStompClient. connect(String url, StompSessionHandler handler, Object... uriVars)
Connect to the given WebSocket URL and notify the givenStompSessionHandler
when connected on the STOMP level after the CONNECTED frame is received.ListenableFuture<StompSession>
WebSocketStompClient. connect(String url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler handler, Object... uriVariables)
An overloaded version ofWebSocketStompClient.connect(String, StompSessionHandler, Object...)
that also acceptsWebSocketHttpHeaders
to use for the WebSocket handshake andStompHeaders
for the STOMP CONNECT frame.ListenableFuture<StompSession>
WebSocketStompClient. connect(String url, WebSocketHttpHeaders handshakeHeaders, StompSessionHandler handler, Object... uriVariables)
An overloaded version ofWebSocketStompClient.connect(String, StompSessionHandler, Object...)
that also acceptsWebSocketHttpHeaders
to use for the WebSocket handshake.ListenableFuture<StompSession>
WebSocketStompClient. connect(URI url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler sessionHandler)
An overloaded version ofWebSocketStompClient.connect(String, WebSocketHttpHeaders, StompSessionHandler, Object...)
that accepts a fully preparedURI
.