open class ServletServerContainerFactoryBean : FactoryBean<WebSocketContainer>, ServletContextAware, InitializingBean
A FactoryBean for configuring javax.websocket.server.ServerContainer. Since there is usually only one ServerContainer instance accessible under a well-known javax.servlet.ServletContext attribute, simply declaring this FactoryBean and using its setters allows for configuring the ServerContainer through Spring configuration.
This is useful even if the ServerContainer is not injected into any other bean within the Spring application context. For example, an application can configure a org.springframework.web.socket.server.support.DefaultHandshakeHandler, a org.springframework.web.socket.sockjs.SockJsService, or ServerEndpointExporter, and separately declare this FactoryBean in order to customize the properties of the (one and only) ServerContainer instance.
Author
Rossen Stoyanchev
Author
Sam Brannen
Since
4.0
ServletServerContainerFactoryBean()
A FactoryBean for configuring javax.websocket.server.ServerContainer. Since there is usually only one This is useful even if the |
open fun afterPropertiesSet(): Unit |
|
open fun getAsyncSendTimeout(): Long |
|
open fun getMaxBinaryMessageBufferSize(): Int |
|
open fun getMaxSessionIdleTimeout(): Long |
|
open fun getMaxTextMessageBufferSize(): Int |
|
open fun getObject(): ServerContainer |
|
open fun getObjectType(): Class<*> |
|
open fun isSingleton(): Boolean |
|
open fun setAsyncSendTimeout(timeoutInMillis: Long): Unit |
|
open fun setMaxBinaryMessageBufferSize(bufferSize: Int): Unit |
|
open fun setMaxSessionIdleTimeout(timeoutInMillis: Long): Unit |
|
open fun setMaxTextMessageBufferSize(bufferSize: Int): Unit |
|
open fun setServletContext(servletContext: ServletContext): Unit |