public class WebSocketServerFactory extends ContainerLifeCycle implements WebSocketCreator, WebSocketContainerScope, WebSocketServletFactory, SessionListener
AbstractLifeCycle.AbstractLifeCycleListenerWebSocketServletFactory.LoaderContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
WebSocketServerFactory() |
WebSocketServerFactory(ByteBufferPool bufferPool) |
WebSocketServerFactory(WebSocketPolicy policy) |
WebSocketServerFactory(WebSocketPolicy policy,
ByteBufferPool bufferPool) |
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, stoppublic WebSocketServerFactory()
public WebSocketServerFactory(WebSocketPolicy policy)
public WebSocketServerFactory(ByteBufferPool bufferPool)
public WebSocketServerFactory(WebSocketPolicy policy, ByteBufferPool bufferPool)
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 void cleanup()
cleanup in interface WebSocketServletFactorypublic WebSocketServletFactory createFactory(WebSocketPolicy policy)
createFactory in interface WebSocketServletFactorypublic 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 void init(ServletContextHandler context) throws ServletException
ServletExceptionpublic void init(ServletContext context) throws ServletException
init in interface WebSocketServletFactoryServletExceptionpublic boolean isUpgradeRequest(HttpServletRequest request, HttpServletResponse response)
isUpgradeRequest in interface WebSocketServletFactorypublic void onSessionClosed(WebSocketSession session)
onSessionClosed in interface SessionListenerpublic void onSessionOpened(WebSocketSession session)
onSessionOpened in interface SessionListenerpublic void register(Class<?> websocketPojo)
register in interface WebSocketServletFactorypublic void setCreator(WebSocketCreator creator)
setCreator in interface WebSocketServletFactoryCopyright © 1995-2015 Webtide. All Rights Reserved.