| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private HandshakeHandler | |
| private final List | |
| private final String[] | |
| private SockJsServiceRegistration | |
| private final TaskScheduler | |
| private final WebSocketHandler |
| Access | Constructor and Description |
|---|---|
| public | WebMvcStompWebSocketEndpointRegistration(String[] paths, WebSocketHandler webSocketHandler, TaskScheduler sockJsTaskScheduler)
|
| allowedOriginPatterns | back to summary |
|---|---|
| private final List<String> allowedOriginPatterns | |
| allowedOrigins | back to summary |
|---|---|
| private final List<String> allowedOrigins | |
| handshakeHandler | back to summary |
|---|---|
| private HandshakeHandler handshakeHandler
| |
| interceptors | back to summary |
|---|---|
| private final List<HandshakeInterceptor> interceptors | |
| paths | back to summary |
|---|---|
| private final String[] paths | |
| registration | back to summary |
|---|---|
| private SockJsServiceRegistration registration
| |
| sockJsTaskScheduler | back to summary |
|---|---|
| private final TaskScheduler sockJsTaskScheduler | |
| webSocketHandler | back to summary |
|---|---|
| private final WebSocketHandler webSocketHandler | |
| WebMvcStompWebSocketEndpointRegistration | back to summary |
|---|---|
| public WebMvcStompWebSocketEndpointRegistration(String[] paths, WebSocketHandler webSocketHandler, TaskScheduler sockJsTaskScheduler) | |
| addInterceptors | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration addInterceptors(HandshakeInterceptor... interceptors) Implements org. Doc from org. Configure the HandshakeInterceptor's to use.
| |
| getInterceptors | back to summary |
|---|---|
| protected HandshakeInterceptor[] getInterceptors() | |
| getMappings | back to summary |
|---|---|
| public final MultiValueMap | |
| setAllowedOriginPatterns | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration setAllowedOriginPatterns(String... allowedOriginPatterns) Implements org. Alternative to By default this is not set.
| |
| setAllowedOrigins | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration setAllowedOrigins(String... allowedOrigins) Implements org. Set the origins for which cross-origin requests are allowed from a browser.
Please, refer to By default, no origins are allowed. When
Note when SockJS is enabled and origins are restricted, transport types that do not allow to check request origin (Iframe based transports) are disabled. As a consequence, IE 6 to 9 are not supported when origins are restricted.
| |
| setHandshakeHandler | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration setHandshakeHandler(HandshakeHandler handshakeHandler) Implements org. Configure the HandshakeHandler to use.
| |
| withSockJS | back to summary |
|---|---|
| public SockJsServiceRegistration withSockJS() Implements org. Doc from org. Enable SockJS fallback options.
| |