public interface WampWebSocketEndpointRegistration
| Modifier and Type | Method and Description |
|---|---|
WampWebSocketEndpointRegistration |
addInterceptors(org.springframework.web.socket.server.HandshakeInterceptor... interceptors)
Configure the HandshakeInterceptor's to use.
|
WampWebSocketEndpointRegistration |
setAllowedOrigins(String... origins)
Configure allowed
Origin header values. |
WampWebSocketEndpointRegistration |
setHandshakeHandler(org.springframework.web.socket.server.HandshakeHandler handshakeHandler)
Configure the HandshakeHandler to use.
|
org.springframework.web.socket.config.annotation.SockJsServiceRegistration |
withSockJS()
Enable SockJS fallback options.
|
org.springframework.web.socket.config.annotation.SockJsServiceRegistration withSockJS()
WampWebSocketEndpointRegistration setHandshakeHandler(org.springframework.web.socket.server.HandshakeHandler handshakeHandler)
WampWebSocketEndpointRegistration addInterceptors(org.springframework.web.socket.server.HandshakeInterceptor... interceptors)
WampWebSocketEndpointRegistration setAllowedOrigins(String... origins)
Origin header values. This check is mostly designed for
browser clients. There is noting preventing other types of client to modify the
Origin header value.
When SockJS is enabled and allowed origins are restricted, transport types that do
not use Origin headers for cross origin requests (jsonp-polling,
iframe-xhr-polling, iframe-eventsource and iframe-htmlfile) are disabled. As a
consequence, IE6/IE7 won't be supported anymore and IE8/IE9 will only be supported
without cookies.
By default, all origins are allowed.
Copyright © 2014–2017. All rights reserved.