public class WebMvcStompWebSocketEndpointRegistration extends java.lang.Object implements StompWebSocketEndpointRegistration
Modifier and Type | Class and Description |
---|---|
private static class |
WebMvcStompWebSocketEndpointRegistration.StompSockJsServiceRegistration |
Modifier and Type | Field and Description |
---|---|
private HandshakeHandler |
handshakeHandler |
private HandshakeInterceptor[] |
interceptors |
private java.lang.String[] |
paths |
private WebMvcStompWebSocketEndpointRegistration.StompSockJsServiceRegistration |
registration |
private TaskScheduler |
sockJsTaskScheduler |
private WebSocketHandler |
webSocketHandler |
Constructor and Description |
---|
WebMvcStompWebSocketEndpointRegistration(java.lang.String[] paths,
WebSocketHandler webSocketHandler,
TaskScheduler sockJsTaskScheduler) |
Modifier and Type | Method and Description |
---|---|
StompWebSocketEndpointRegistration |
addInterceptors(HandshakeInterceptor... interceptors)
Configure the HandshakeInterceptor's to use.
|
protected HandshakeInterceptor[] |
getInterceptors() |
MultiValueMap<HttpRequestHandler,java.lang.String> |
getMappings() |
StompWebSocketEndpointRegistration |
setHandshakeHandler(HandshakeHandler handshakeHandler)
Configure the HandshakeHandler to use.
|
SockJsServiceRegistration |
withSockJS()
Enable SockJS fallback options.
|
private final java.lang.String[] paths
private final WebSocketHandler webSocketHandler
private final TaskScheduler sockJsTaskScheduler
private HandshakeHandler handshakeHandler
private HandshakeInterceptor[] interceptors
private WebMvcStompWebSocketEndpointRegistration.StompSockJsServiceRegistration registration
public WebMvcStompWebSocketEndpointRegistration(java.lang.String[] paths, WebSocketHandler webSocketHandler, TaskScheduler sockJsTaskScheduler)
public StompWebSocketEndpointRegistration setHandshakeHandler(HandshakeHandler handshakeHandler)
StompWebSocketEndpointRegistration
setHandshakeHandler
in interface StompWebSocketEndpointRegistration
public StompWebSocketEndpointRegistration addInterceptors(HandshakeInterceptor... interceptors)
StompWebSocketEndpointRegistration
addInterceptors
in interface StompWebSocketEndpointRegistration
protected HandshakeInterceptor[] getInterceptors()
public SockJsServiceRegistration withSockJS()
StompWebSocketEndpointRegistration
withSockJS
in interface StompWebSocketEndpointRegistration
public final MultiValueMap<HttpRequestHandler,java.lang.String> getMappings()