public class ProxyWebSocketConnectionManager
extends org.springframework.web.socket.client.ConnectionManagerSupport
implements org.springframework.messaging.simp.stomp.StompSessionHandler
| Constructor and Description |
|---|
ProxyWebSocketConnectionManager(org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate,
org.springframework.web.socket.messaging.WebSocketStompClient stompClient,
org.springframework.web.socket.WebSocketSession userAgentSession,
WebSocketHttpHeadersCallback httpHeadersCallback,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConnected(org.springframework.messaging.simp.stomp.StompSession session,
org.springframework.messaging.simp.stomp.StompHeaders connectedHeaders) |
protected void |
closeConnection() |
void |
connect() |
void |
disconnect() |
void |
errorHandler(org.springframework.util.ErrorHandler errorHandler) |
Type |
getPayloadType(org.springframework.messaging.simp.stomp.StompHeaders headers) |
void |
handleException(org.springframework.messaging.simp.stomp.StompSession session,
org.springframework.messaging.simp.stomp.StompCommand command,
org.springframework.messaging.simp.stomp.StompHeaders headers,
byte[] payload,
Throwable ex) |
void |
handleFrame(org.springframework.messaging.simp.stomp.StompHeaders headers,
Object payload) |
void |
handleTransportError(org.springframework.messaging.simp.stomp.StompSession session,
Throwable ex) |
protected boolean |
isConnected() |
boolean |
isConnectedToUserAgent() |
protected void |
openConnection() |
void |
reconnect(long delay) |
void |
sendMessage(String destination,
Object msg) |
void |
subscribe(String destination) |
void |
unsubscribe(String destination) |
public ProxyWebSocketConnectionManager(org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate,
org.springframework.web.socket.messaging.WebSocketStompClient stompClient,
org.springframework.web.socket.WebSocketSession userAgentSession,
WebSocketHttpHeadersCallback httpHeadersCallback,
String uri)
public void errorHandler(org.springframework.util.ErrorHandler errorHandler)
protected void openConnection()
openConnection in class org.springframework.web.socket.client.ConnectionManagerSupportpublic void connect()
public void reconnect(long delay)
protected void closeConnection()
throws Exception
closeConnection in class org.springframework.web.socket.client.ConnectionManagerSupportExceptionprotected boolean isConnected()
isConnected in class org.springframework.web.socket.client.ConnectionManagerSupportpublic void afterConnected(org.springframework.messaging.simp.stomp.StompSession session,
org.springframework.messaging.simp.stomp.StompHeaders connectedHeaders)
afterConnected in interface org.springframework.messaging.simp.stomp.StompSessionHandlerpublic void handleException(org.springframework.messaging.simp.stomp.StompSession session,
org.springframework.messaging.simp.stomp.StompCommand command,
org.springframework.messaging.simp.stomp.StompHeaders headers,
byte[] payload,
Throwable ex)
handleException in interface org.springframework.messaging.simp.stomp.StompSessionHandlerpublic void handleTransportError(org.springframework.messaging.simp.stomp.StompSession session,
Throwable ex)
handleTransportError in interface org.springframework.messaging.simp.stomp.StompSessionHandlerpublic Type getPayloadType(org.springframework.messaging.simp.stomp.StompHeaders headers)
getPayloadType in interface org.springframework.messaging.simp.stomp.StompFrameHandlerpublic void handleFrame(org.springframework.messaging.simp.stomp.StompHeaders headers,
Object payload)
handleFrame in interface org.springframework.messaging.simp.stomp.StompFrameHandlerpublic void unsubscribe(String destination)
public boolean isConnectedToUserAgent()
public void disconnect()
Copyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.