public class WebMvcWampWebSocketEndpointRegistration extends Object implements WampWebSocketEndpointRegistration
| Constructor and Description |
|---|
WebMvcWampWebSocketEndpointRegistration(String[] paths,
org.springframework.web.socket.WebSocketHandler webSocketHandler,
org.springframework.scheduling.TaskScheduler sockJsTaskScheduler) |
| Modifier and Type | Method and Description |
|---|---|
WampWebSocketEndpointRegistration |
addInterceptors(org.springframework.web.socket.server.HandshakeInterceptor... handshakeInterceptors)
Configure the HandshakeInterceptor's to use.
|
protected org.springframework.web.socket.server.HandshakeInterceptor[] |
getInterceptors() |
org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,String> |
getMappings() |
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.
|
public WebMvcWampWebSocketEndpointRegistration(String[] paths, org.springframework.web.socket.WebSocketHandler webSocketHandler, org.springframework.scheduling.TaskScheduler sockJsTaskScheduler)
public WampWebSocketEndpointRegistration setHandshakeHandler(org.springframework.web.socket.server.HandshakeHandler handshakeHandler)
WampWebSocketEndpointRegistrationsetHandshakeHandler in interface WampWebSocketEndpointRegistrationpublic WampWebSocketEndpointRegistration addInterceptors(org.springframework.web.socket.server.HandshakeInterceptor... handshakeInterceptors)
WampWebSocketEndpointRegistrationaddInterceptors in interface WampWebSocketEndpointRegistrationpublic WampWebSocketEndpointRegistration setAllowedOrigins(String... origins)
WampWebSocketEndpointRegistrationOrigin 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.
setAllowedOrigins in interface WampWebSocketEndpointRegistrationpublic org.springframework.web.socket.config.annotation.SockJsServiceRegistration withSockJS()
WampWebSocketEndpointRegistrationwithSockJS in interface WampWebSocketEndpointRegistrationprotected org.springframework.web.socket.server.HandshakeInterceptor[] getInterceptors()
public final org.springframework.util.MultiValueMap<org.springframework.web.HttpRequestHandler,String> getMappings()
Copyright © 2014–2017. All rights reserved.