Uses of Class
org.springframework.web.socket.config.annotation.SockJsServiceRegistration
Packages that use SockJsServiceRegistration
Package
Description
Support for annotation-based WebSocket setup in configuration classes.
- 
Uses of SockJsServiceRegistration in org.springframework.web.socket.config.annotationMethods in org.springframework.web.socket.config.annotation that return SockJsServiceRegistrationModifier and TypeMethodDescriptionprotected SockJsServiceRegistrationAbstractWebSocketHandlerRegistration.getSockJsServiceRegistration()Expose theSockJsServiceRegistration-- if SockJS is enabled ornullotherwise -- so that it can be configured with a TaskScheduler if the application did not provide one.protected SockJsServiceRegistrationSockJsServiceRegistration.setAllowedOriginPatterns(String... allowedOriginPatterns) Configure allowedOriginpattern header values.protected SockJsServiceRegistrationSockJsServiceRegistration.setAllowedOrigins(String... allowedOrigins) Configure allowedOriginheader values.SockJsServiceRegistration.setClientLibraryUrl(String clientLibraryUrl) Transports with no native cross-domain communication (e.g.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.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.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.setInterceptors(HandshakeInterceptor... interceptors) SockJsServiceRegistration.setMessageCodec(SockJsMessageCodec codec) The codec to use for encoding and decoding SockJS messages.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.setStreamBytesLimit(int streamBytesLimit) Streaming transports save responses on the client side and don't free memory used by delivered messages.SockJsServiceRegistration.setSuppressCors(boolean suppressCors) This option can be used to disable automatic addition of CORS headers for SockJS requests.SockJsServiceRegistration.setTaskScheduler(TaskScheduler scheduler) A scheduler instance to use for scheduling SockJS heart-beats.SockJsServiceRegistration.setTransportHandlerOverrides(TransportHandler... handlers) SockJsServiceRegistration.setTransportHandlers(TransportHandler... handlers) SockJsServiceRegistration.setWebSocketEnabled(boolean webSocketEnabled) Some load balancers don't support WebSocket.AbstractWebSocketHandlerRegistration.withSockJS()StompWebSocketEndpointRegistration.withSockJS()Enable SockJS fallback options.WebMvcStompWebSocketEndpointRegistration.withSockJS()WebSocketHandlerRegistration.withSockJS()Enable SockJS fallback options.