Package | Description |
---|---|
org.springframework.web.socket.config.annotation |
Support for annotation-based WebSocket setup in configuration classes.
|
Modifier and Type | Method and Description |
---|---|
protected SockJsServiceRegistration |
AbstractWebSocketHandlerRegistration.getSockJsServiceRegistration()
Expose the
SockJsServiceRegistration -- if SockJS is enabled or
null otherwise -- so that it can be configured with a TaskScheduler
if the application did not provide one. |
protected SockJsServiceRegistration |
SockJsServiceRegistration.setAllowedOriginPatterns(String... allowedOriginPatterns)
Configure allowed
Origin pattern header values. |
protected SockJsServiceRegistration |
SockJsServiceRegistration.setAllowedOrigins(String... allowedOrigins)
Configure allowed
Origin header values. |
SockJsServiceRegistration |
SockJsServiceRegistration.setClientLibraryUrl(String clientLibraryUrl)
Transports with no native cross-domain communication (e.g.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setDisconnectDelay(long disconnectDelay)
The amount of time in milliseconds before a client is considered
disconnected after not having a receiving connection, i.e.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setHeartbeatTime(long heartbeatTime)
The amount of time in milliseconds when the server has not sent any
messages and after which the server should send a heartbeat frame to the
client in order to keep the connection from breaking.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setHttpMessageCacheSize(int httpMessageCacheSize)
The number of server-to-client messages that a session can cache while waiting for
the next HTTP polling request from the client.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setInterceptors(HandshakeInterceptor... interceptors) |
SockJsServiceRegistration |
SockJsServiceRegistration.setMessageCodec(SockJsMessageCodec codec)
The codec to use for encoding and decoding SockJS messages.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setSessionCookieNeeded(boolean sessionCookieNeeded)
The SockJS protocol requires a server to respond to the initial "/info" request
from clients with a "cookie_needed" boolean property that indicates whether the use
of a JSESSIONID cookie is required for the application to function correctly, e.g.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setStreamBytesLimit(int streamBytesLimit)
Streaming transports save responses on the client side and don't free
memory used by delivered messages.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setSupressCors(boolean suppressCors)
This option can be used to disable automatic addition of CORS headers for
SockJS requests.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setTaskScheduler(TaskScheduler scheduler)
A scheduler instance to use for scheduling SockJS heart-beats.
|
SockJsServiceRegistration |
SockJsServiceRegistration.setTransportHandlerOverrides(TransportHandler... handlers) |
SockJsServiceRegistration |
SockJsServiceRegistration.setTransportHandlers(TransportHandler... handlers) |
SockJsServiceRegistration |
SockJsServiceRegistration.setWebSocketEnabled(boolean webSocketEnabled)
Some load balancers don't support WebSocket.
|
SockJsServiceRegistration |
StompWebSocketEndpointRegistration.withSockJS()
Enable SockJS fallback options.
|
SockJsServiceRegistration |
WebSocketHandlerRegistration.withSockJS()
Enable SockJS fallback options.
|
SockJsServiceRegistration |
WebMvcStompWebSocketEndpointRegistration.withSockJS() |
SockJsServiceRegistration |
AbstractWebSocketHandlerRegistration.withSockJS() |