public class WebSocketServerFactory extends ContainerLifeCycle implements WebSocketCreator, WebSocketContainerScope, WebSocketServletFactory
AbstractLifeCycle.AbstractLifeCycleListenerWebSocketServletFactory.LoaderContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
WebSocketServerFactory()
Entry point for Spring Boot's MockMVC framework
|
WebSocketServerFactory(ServletContext context) |
WebSocketServerFactory(ServletContext context,
ByteBufferPool bufferPool) |
WebSocketServerFactory(ServletContext context,
WebSocketPolicy policy)
Entry point for
WebSocketServletFactory.Loader |
WebSocketServerFactory(ServletContext context,
WebSocketPolicy policy,
ByteBufferPool bufferPool) |
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopequals, getClass, hashCode, notify, notifyAll, wait, wait, waitisRunningstart, stopdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic WebSocketServerFactory()
public WebSocketServerFactory(ServletContext context)
public WebSocketServerFactory(ServletContext context, ByteBufferPool bufferPool)
public WebSocketServerFactory(ServletContext context, WebSocketPolicy policy)
WebSocketServletFactory.Loadercontext - the servlet contextpolicy - the policy to usepublic WebSocketServerFactory(ServletContext context, WebSocketPolicy policy, ByteBufferPool bufferPool)
public void addSessionListener(WebSocketSessionListener listener)
addSessionListener in interface WebSocketContainerScopepublic void removeSessionListener(WebSocketSessionListener listener)
removeSessionListener in interface WebSocketContainerScopepublic Collection<WebSocketSessionListener> getSessionListeners()
getSessionListeners in interface WebSocketContainerScopepublic boolean acceptWebSocket(HttpServletRequest request, HttpServletResponse response) throws IOException
acceptWebSocket in interface WebSocketServletFactoryIOExceptionpublic boolean acceptWebSocket(WebSocketCreator creator, HttpServletRequest request, HttpServletResponse response) throws IOException
acceptWebSocket in interface WebSocketServletFactoryIOExceptionpublic void addSessionFactory(SessionFactory sessionFactory)
public Object createWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp)
createWebSocket in interface WebSocketCreatorreq - the request detailsresp - the response detailspublic ByteBufferPool getBufferPool()
WebSocketContainerScopegetBufferPool in interface WebSocketContainerScopepublic WebSocketCreator getCreator()
getCreator in interface WebSocketServletFactorypublic Executor getExecutor()
WebSocketContainerScopegetExecutor in interface WebSocketContainerScopepublic DecoratedObjectFactory getObjectFactory()
WebSocketContainerScopegetObjectFactory in interface WebSocketContainerScopepublic EventDriverFactory getEventDriverFactory()
public Set<String> getAvailableExtensionNames()
WebSocketServletFactorygetAvailableExtensionNames in interface WebSocketServletFactory@Deprecated public ExtensionFactory getExtensionFactory()
WebSocketServletFactorygetExtensionFactory in interface WebSocketServletFactoryWebSocketServletFactory.getAvailableExtensionNames()public Collection<WebSocketSession> getOpenSessions()
public WebSocketPolicy getPolicy()
WebSocketContainerScopegetPolicy in interface WebSocketContainerScopegetPolicy in interface WebSocketServletFactorypublic SslContextFactory getSslContextFactory()
WebSocketContainerScopegetSslContextFactory in interface WebSocketContainerScopepublic boolean isUpgradeRequest(HttpServletRequest request, HttpServletResponse response)
isUpgradeRequest in interface WebSocketServletFactorypublic void register(Class<?> websocketPojo)
WebSocketServletFactoryWebSocketCreator.
Note: only required if using the default WebSocketCreator provided by this factory.
register in interface WebSocketServletFactorywebsocketPojo - the class to instantiate for each incoming websocket upgrade request.public void setCreator(WebSocketCreator creator)
setCreator in interface WebSocketServletFactorypublic String toString()
toString in class AbstractLifeCycleCopyright © 2010 - 2020 Adobe. All Rights Reserved