| Modifier and Type | Method and Description |
|---|---|
| public StompWebSocketEndpointRegistration | |
| public StompWebSocketEndpointRegistration | setAllowedOriginPatterns(String... originPatterns)
Alternative to |
| public StompWebSocketEndpointRegistration | setAllowedOrigins(String... origins)
Set the origins for which cross-origin requests are allowed from a browser. |
| public StompWebSocketEndpointRegistration | |
| public SockJsServiceRegistration |
| addInterceptors | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration addInterceptors(HandshakeInterceptor... interceptors) Configure the HandshakeInterceptor's to use. | |
| setAllowedOriginPatterns | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration setAllowedOriginPatterns(String... originPatterns) Alternative to By default this is not set.
| |
| setAllowedOrigins | back to summary |
|---|---|
| public StompWebSocketEndpointRegistration setAllowedOrigins(String... origins) 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) Configure the HandshakeHandler to use. | |
| withSockJS | back to summary |
|---|---|
| public SockJsServiceRegistration withSockJS() Enable SockJS fallback options. | |