public class WebSocketServerFactory extends ContainerLifeCycle implements WebSocketCreator, WebSocketContainerScope, WebSocketServletFactory
AbstractLifeCycle.AbstractLifeCycleListenerWebSocketServletFactory.LoaderContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Modifier | Constructor and Description |
|---|---|
|
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) |
protected |
WebSocketServerFactory(WebSocketPolicy policy,
Executor executor,
ByteBufferPool bufferPool)
Protected entry point for
WebSocketHandler |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRunningstart, stoppublic 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)
protected WebSocketServerFactory(WebSocketPolicy policy, Executor executor, ByteBufferPool bufferPool)
WebSocketHandlerpolicy - the policy to useexecutor - the executor to usebufferPool - the buffer pool to usepublic void addSessionListener(WebSocketSession.Listener listener)
public void removeSessionListener(WebSocketSession.Listener listener)
public 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 WebSocketCreatorprotected void doStart()
throws Exception
doStart in class ContainerLifeCycleExceptionpublic ByteBufferPool getBufferPool()
getBufferPool in interface WebSocketContainerScopepublic WebSocketCreator getCreator()
getCreator in interface WebSocketServletFactorypublic Executor getExecutor()
getExecutor in interface WebSocketContainerScopepublic DecoratedObjectFactory getObjectFactory()
getObjectFactory in interface WebSocketContainerScopepublic EventDriverFactory getEventDriverFactory()
public ExtensionFactory getExtensionFactory()
getExtensionFactory in interface WebSocketServletFactorypublic Collection<WebSocketSession> getOpenSessions()
public WebSocketPolicy getPolicy()
getPolicy in interface WebSocketContainerScopegetPolicy in interface WebSocketServletFactorypublic SslContextFactory getSslContextFactory()
getSslContextFactory in interface WebSocketContainerScopepublic boolean isUpgradeRequest(HttpServletRequest request, HttpServletResponse response)
isUpgradeRequest in interface WebSocketServletFactorypublic void onSessionOpened(WebSocketSession session)
onSessionOpened in interface WebSocketContainerScopepublic void onSessionClosed(WebSocketSession session)
onSessionClosed in interface WebSocketContainerScopepublic void register(Class<?> websocketPojo)
register in interface WebSocketServletFactorypublic void setCreator(WebSocketCreator creator)
setCreator in interface WebSocketServletFactoryCopyright © 1995–2017 Webtide. All rights reserved.