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.Dumpable.DumpableContainer, 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.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.jetty.io.ByteBufferPoolprivate final Executorprivate final org.eclipse.jetty.util.log.Loggerprivate final org.eclipse.jetty.util.DecoratedObjectFactoryprivate final WebSocketPolicyprivate List<WebSocketSessionListener> private org.eclipse.jetty.util.ssl.SslContextFactoryFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
ConstructorsConstructorDescriptionSimpleContainerScope(WebSocketPolicy policy) SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool) SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory) SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.ssl.SslContextFactory ssl, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory) SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionListener(WebSocketSessionListener listener) org.eclipse.jetty.io.ByteBufferPoolThe configured Container Buffer Pool.Executor in use by the container.org.eclipse.jetty.util.DecoratedObjectFactoryObject Factory used to create objects.The policy the container is running on.org.eclipse.jetty.util.ssl.SslContextFactoryThe SslContextFactory in use by the container.voidvoidsetSslContextFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory) Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface WebSocketContainerScope
getClassLoader, isRunning
-
Field Details
-
bufferPool
private final org.eclipse.jetty.io.ByteBufferPool bufferPool -
objectFactory
private final org.eclipse.jetty.util.DecoratedObjectFactory objectFactory -
policy
-
executor
-
logger
private final org.eclipse.jetty.util.log.Logger logger -
sslContextFactory
private org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory -
sessionListeners
-
-
Constructor Details
-
SimpleContainerScope
-
SimpleContainerScope
-
SimpleContainerScope
public SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory) -
SimpleContainerScope
public SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory) -
SimpleContainerScope
public SimpleContainerScope(WebSocketPolicy policy, org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.util.ssl.SslContextFactory ssl, org.eclipse.jetty.util.DecoratedObjectFactory objectFactory)
-
-
Method Details
-
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
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
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) -
addSessionListener
- Specified by:
addSessionListenerin interfaceWebSocketContainerScope
-
removeSessionListener
- Specified by:
removeSessionListenerin interfaceWebSocketContainerScope
-
getSessionListeners
- Specified by:
getSessionListenersin interfaceWebSocketContainerScope
-