public interface StompWebSocketEndpointRegistration
Modifier and Type | Method and Description |
---|---|
StompWebSocketEndpointRegistration |
addInterceptors(HandshakeInterceptor... interceptors)
Configure the HandshakeInterceptor's to use.
|
StompWebSocketEndpointRegistration |
setAllowedOriginPatterns(String... originPatterns)
Alternative to
setAllowedOrigins(String...) that supports more
flexible patterns for specifying the origins for which cross-origin
requests are allowed from a browser. |
StompWebSocketEndpointRegistration |
setAllowedOrigins(String... origins)
Set the origins for which cross-origin requests are allowed from a browser.
|
StompWebSocketEndpointRegistration |
setHandshakeHandler(HandshakeHandler handshakeHandler)
Configure the HandshakeHandler to use.
|
SockJsServiceRegistration |
withSockJS()
Enable SockJS fallback options.
|
SockJsServiceRegistration withSockJS()
StompWebSocketEndpointRegistration setHandshakeHandler(HandshakeHandler handshakeHandler)
StompWebSocketEndpointRegistration addInterceptors(HandshakeInterceptor... interceptors)
StompWebSocketEndpointRegistration setAllowedOrigins(String... origins)
CorsConfiguration.setAllowedOrigins(List)
for
format details and considerations, and keep in mind that the CORS spec
does not allow use of "*"
with allowCredentials=true
.
For more flexible origin patterns use setAllowedOriginPatterns(java.lang.String...)
instead.
By default, no origins are allowed. When
allowedOriginPatterns
is also
set, then that takes precedence over this property.
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.
setAllowedOriginPatterns(String...)
,
RFC 6454: The Web Origin Concept,
SockJS supported transports by browserStompWebSocketEndpointRegistration setAllowedOriginPatterns(String... originPatterns)
setAllowedOrigins(String...)
that supports more
flexible patterns for specifying the origins for which cross-origin
requests are allowed from a browser. Please, refer to
CorsConfiguration.setAllowedOriginPatterns(List)
for format
details and other considerations.
By default this is not set.