Package | Description |
---|---|
org.springframework.web.socket.config.annotation |
Support for annotation-based WebSocket setup in configuration classes.
|
org.springframework.web.socket.sockjs.transport |
Server-side support for SockJS transports including
TransportHandler implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService . |
org.springframework.web.socket.sockjs.transport.handler |
TransportHandler
implementation classes as well as a concrete
SockJsService . |
Modifier and Type | Method and Description |
---|---|
SockJsServiceRegistration |
SockJsServiceRegistration.setTransportHandlerOverrides(TransportHandler... handlers) |
SockJsServiceRegistration |
SockJsServiceRegistration.setTransportHandlers(TransportHandler... handlers) |
Modifier and Type | Method and Description |
---|---|
Map<TransportType,TransportHandler> |
TransportHandlingSockJsService.getTransportHandlers()
Return the registered handlers per transport type.
|
Constructor and Description |
---|
TransportHandlingSockJsService(TaskScheduler scheduler,
TransportHandler... handlers)
Create a TransportHandlingSockJsService with given
handler types. |
Constructor and Description |
---|
TransportHandlingSockJsService(TaskScheduler scheduler,
Collection<TransportHandler> handlers)
Create a TransportHandlingSockJsService with given
handler types. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHttpReceivingTransportHandler
Base class for HTTP transport handlers that receive messages via HTTP POST.
|
class |
AbstractHttpSendingTransportHandler
Base class for HTTP transport handlers that push messages to connected clients.
|
class |
AbstractTransportHandler
Common base class for
TransportHandler implementations. |
class |
EventSourceTransportHandler
A TransportHandler for sending messages via Server-Sent Events:
https://dev.w3.org/html5/eventsource/.
|
class |
HtmlFileTransportHandler
An HTTP
TransportHandler that uses a famous browser
document.domain technique. |
class |
WebSocketTransportHandler
WebSocket-based
TransportHandler . |
class |
XhrPollingTransportHandler
A
TransportHandler based on XHR (long) polling. |
class |
XhrReceivingTransportHandler
A
TransportHandler that receives messages over HTTP. |
class |
XhrStreamingTransportHandler
A
TransportHandler that sends messages over an HTTP streaming request. |
Constructor and Description |
---|
DefaultSockJsService(TaskScheduler scheduler,
TransportHandler... handlerOverrides)
Create a DefaultSockJsService with overridden
handler types
replacing the corresponding default handler implementation. |
Constructor and Description |
---|
DefaultSockJsService(TaskScheduler scheduler,
Collection<TransportHandler> handlerOverrides)
Create a DefaultSockJsService with overridden
handler types
replacing the corresponding default handler implementation. |