public class WampWebSocketHandler extends Object implements org.springframework.web.reactive.socket.WebSocketHandler, org.springframework.context.ApplicationEventPublisherAware
| Modifier and Type | Field and Description |
|---|---|
static String |
CBOR_PROTOCOL |
static String |
JSON_PROTOCOL |
static String |
MSGPACK_PROTOCOL |
static String |
SMILE_PROTOCOL |
| Constructor and Description |
|---|
WampWebSocketHandler(com.fasterxml.jackson.core.JsonFactory jsonFactory,
com.fasterxml.jackson.core.JsonFactory msgpackFactory,
com.fasterxml.jackson.core.JsonFactory cborFactory,
com.fasterxml.jackson.core.JsonFactory smileFactory,
org.springframework.messaging.MessageChannel clientOutboundChannel,
org.springframework.messaging.MessageChannel clientInboundChannel,
Features features) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getSubProtocols() |
reactor.core.publisher.Mono<Void> |
handle(org.springframework.web.reactive.socket.WebSocketSession session) |
void |
handleIncomingMessage(org.springframework.web.reactive.socket.WebSocketMessage inMsg,
org.springframework.web.reactive.socket.WebSocketSession session) |
org.springframework.web.reactive.socket.WebSocketMessage |
handleOutgoingMessage(org.springframework.messaging.Message<Object> message,
org.springframework.web.reactive.socket.WebSocketSession session) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
String |
toString() |
public static final String JSON_PROTOCOL
public static final String MSGPACK_PROTOCOL
public static final String CBOR_PROTOCOL
public static final String SMILE_PROTOCOL
public WampWebSocketHandler(com.fasterxml.jackson.core.JsonFactory jsonFactory,
com.fasterxml.jackson.core.JsonFactory msgpackFactory,
com.fasterxml.jackson.core.JsonFactory cborFactory,
com.fasterxml.jackson.core.JsonFactory smileFactory,
org.springframework.messaging.MessageChannel clientOutboundChannel,
org.springframework.messaging.MessageChannel clientInboundChannel,
Features features)
public List<String> getSubProtocols()
getSubProtocols in interface org.springframework.web.reactive.socket.WebSocketHandlerpublic reactor.core.publisher.Mono<Void> handle(org.springframework.web.reactive.socket.WebSocketSession session)
handle in interface org.springframework.web.reactive.socket.WebSocketHandlerpublic void handleIncomingMessage(org.springframework.web.reactive.socket.WebSocketMessage inMsg,
org.springframework.web.reactive.socket.WebSocketSession session)
public org.springframework.web.reactive.socket.WebSocketMessage handleOutgoingMessage(org.springframework.messaging.Message<Object> message, org.springframework.web.reactive.socket.WebSocketSession session)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareCopyright © 2017–2018. All rights reserved.