Class SimpleContainerScope
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.websocket.common.scopes.SimpleContainerScope
-
- All Implemented Interfaces:
org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle,WebSocketContainerScope
public class SimpleContainerScope extends org.eclipse.jetty.util.component.ContainerLifeCycle implements WebSocketContainerScope
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
-
Constructor Summary
Constructors Constructor Description SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy)SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool)SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.ssl.SslContextFactory ssl, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.io.ByteBufferPoolgetBufferPool()The configured Container Buffer Pool.ExecutorgetExecutor()Executor in use by the container.org.eclipse.jetty.util.DecoratedObjectFactorygetObjectFactory()Object Factory used to create objects.org.eclipse.jetty.websocket.api.WebSocketPolicygetPolicy()The policy the container is running on.org.eclipse.jetty.util.ssl.SslContextFactorygetSslContextFactory()The SslContextFactory in use by the container.voidonSessionClosed(WebSocketSession session)A Session has been closedvoidonSessionOpened(WebSocketSession session)A Session has been openedvoidsetSslContextFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory)-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.websocket.common.scopes.WebSocketContainerScope
isRunning
-
-
-
-
Constructor Detail
-
SimpleContainerScope
public SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy)
-
SimpleContainerScope
public SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool)
-
SimpleContainerScope
public SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)
-
SimpleContainerScope
public SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)
-
SimpleContainerScope
public SimpleContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.ssl.SslContextFactory ssl, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)
-
-
Method Detail
-
getBufferPool
public org.eclipse.jetty.io.ByteBufferPool getBufferPool()
Description copied from interface:WebSocketContainerScopeThe configured Container Buffer Pool.- Specified by:
getBufferPoolin interfaceWebSocketContainerScope- Returns:
- the buffer pool (never null)
-
getExecutor
public Executor getExecutor()
Description copied from interface:WebSocketContainerScopeExecutor in use by the container.- Specified by:
getExecutorin interfaceWebSocketContainerScope- Returns:
- the Executor in use by the container.
-
getObjectFactory
public org.eclipse.jetty.util.DecoratedObjectFactory getObjectFactory()
Description copied from interface:WebSocketContainerScopeObject Factory used to create objects.- Specified by:
getObjectFactoryin interfaceWebSocketContainerScope- Returns:
- Object Factory used to create instances of objects.
-
getPolicy
public org.eclipse.jetty.websocket.api.WebSocketPolicy getPolicy()
Description copied from interface:WebSocketContainerScopeThe policy the container is running on.- Specified by:
getPolicyin interfaceWebSocketContainerScope- Returns:
- the websocket policy
-
getSslContextFactory
public org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
Description copied from interface:WebSocketContainerScopeThe SslContextFactory in use by the container.- Specified by:
getSslContextFactoryin interfaceWebSocketContainerScope- Returns:
- the SslContextFactory in use by the container (can be null if no SSL context is defined)
-
setSslContextFactory
public void setSslContextFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory)
-
onSessionOpened
public void onSessionOpened(WebSocketSession session)
Description copied from interface:WebSocketContainerScopeA Session has been opened- Specified by:
onSessionOpenedin interfaceWebSocketContainerScope- Parameters:
session- the session that was opened
-
onSessionClosed
public void onSessionClosed(WebSocketSession session)
Description copied from interface:WebSocketContainerScopeA Session has been closed- Specified by:
onSessionClosedin interfaceWebSocketContainerScope- Parameters:
session- the session that was closed
-
-