org.springframework.web.socket.sockjs.SockJsService
with all default TransportHandler implementations pre-registered.
| Access | Constructor and Description |
|---|---|
| public | DefaultSockJsService(TaskScheduler
a task scheduler for heart-beat messages and removing
timed-out sessions; the provided TaskScheduler should be declared as a
Spring bean to ensure it is initialized at start up and shut down when the
application stops. scheduler)Create a DefaultSockJsService with default |
| public | DefaultSockJsService(TaskScheduler
a task scheduler for heart-beat messages and removing timed-out sessions;
the provided TaskScheduler should be declared as a Spring bean to ensure it gets
initialized at start-up and shuts down when the application stops scheduler, TransportHandler... zero or more overrides to the default transport handler types handlerOverrides)Create a DefaultSockJsService with overridden |
| public | DefaultSockJsService(TaskScheduler
a task scheduler for heart-beat messages and removing timed-out sessions;
the provided TaskScheduler should be declared as a Spring bean to ensure it gets
initialized at start-up and shuts down when the application stops scheduler, Collection<TransportHandler> zero or more overrides to the default transport handler types handlerOverrides)Create a DefaultSockJsService with overridden |
| Modifier and Type | Method and Description |
|---|---|
| private static Set | |
| public void | setServletContext(ServletContext
the ServletContext object to be used by this object servletContext)Implements org. Set the Invoked after population of normal bean properties but before an init
callback like InitializingBean's |
| DefaultSockJsService | back to summary |
|---|---|
| public DefaultSockJsService(TaskScheduler scheduler) Create a DefaultSockJsService with default
| |
| DefaultSockJsService | back to summary |
|---|---|
| public DefaultSockJsService(TaskScheduler scheduler, TransportHandler... handlerOverrides) Create a DefaultSockJsService with overridden
| |
| DefaultSockJsService | back to summary |
|---|---|
| public DefaultSockJsService(TaskScheduler scheduler, Collection<TransportHandler> handlerOverrides) Create a DefaultSockJsService with overridden
| |
| getDefaultTransportHandlers | back to summary |
|---|---|
| private static Set | |
| setServletContext | back to summary |
|---|---|
| public void setServletContext(ServletContext servletContext) Implements org. Doc from org. Set the Invoked after population of normal bean properties but before an init
callback like InitializingBean's
| |