public class WampWebsocketHandler extends Object implements org.springframework.web.socket.WebSocketHandler, org.springframework.web.socket.SubProtocolCapable
WebSocketHandler implementation that handles incoming WAMP
requests. It registers the WebSocketSessions in the
WampMessageSender object, converts the incoming String into a
WampMessage and forwards the message to PubSubHandler and
AnnotationMethodHandler.| Constructor and Description |
|---|
WampWebsocketHandler(AnnotationMethodHandler annotationMethodHandler,
PubSubHandler pubSubHandler,
WampMessageSender wampMessageSender,
com.fasterxml.jackson.core.JsonFactory jsonFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus closeStatus) |
void |
afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) |
List<String> |
getSubProtocols() |
void |
handleMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.WebSocketMessage<?> webSocketMessage) |
void |
handleTransportError(org.springframework.web.socket.WebSocketSession session,
Throwable exception) |
boolean |
supportsPartialMessages() |
public WampWebsocketHandler(AnnotationMethodHandler annotationMethodHandler, PubSubHandler pubSubHandler, WampMessageSender wampMessageSender, com.fasterxml.jackson.core.JsonFactory jsonFactory)
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session)
throws Exception
afterConnectionEstablished in interface org.springframework.web.socket.WebSocketHandlerExceptionpublic void handleMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.WebSocketMessage<?> webSocketMessage)
throws Exception
handleMessage in interface org.springframework.web.socket.WebSocketHandlerExceptionpublic void handleTransportError(org.springframework.web.socket.WebSocketSession session,
Throwable exception)
throws Exception
handleTransportError in interface org.springframework.web.socket.WebSocketHandlerExceptionpublic void afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus closeStatus)
throws Exception
afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandlerExceptionpublic boolean supportsPartialMessages()
supportsPartialMessages in interface org.springframework.web.socket.WebSocketHandlerCopyright © 2014. All Rights Reserved.