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.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
Nested 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.ByteBufferPool
private final Executor
private final org.eclipse.jetty.util.log.Logger
private final org.eclipse.jetty.util.DecoratedObjectFactory
private final WebSocketPolicy
private List
<WebSocketSessionListener> private org.eclipse.jetty.util.ssl.SslContextFactory
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Fields 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 TypeMethodDescriptionvoid
addSessionListener
(WebSocketSessionListener listener) org.eclipse.jetty.io.ByteBufferPool
The configured Container Buffer Pool.Executor in use by the container.org.eclipse.jetty.util.DecoratedObjectFactory
Object Factory used to create objects.The policy the container is running on.org.eclipse.jetty.util.ssl.SslContextFactory
The SslContextFactory in use by the container.void
void
setSslContextFactory
(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, 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.util.component.Dumpable
dumpSelf
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
Methods inherited from interface org.eclipse.jetty.websocket.common.scopes.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:WebSocketContainerScope
The configured Container Buffer Pool.- Specified by:
getBufferPool
in interfaceWebSocketContainerScope
- Returns:
- the buffer pool (never null)
-
getExecutor
Description copied from interface:WebSocketContainerScope
Executor in use by the container.- Specified by:
getExecutor
in interfaceWebSocketContainerScope
- Returns:
- the Executor in use by the container.
-
getObjectFactory
public org.eclipse.jetty.util.DecoratedObjectFactory getObjectFactory()Description copied from interface:WebSocketContainerScope
Object Factory used to create objects.- Specified by:
getObjectFactory
in interfaceWebSocketContainerScope
- Returns:
- Object Factory used to create instances of objects.
-
getPolicy
Description copied from interface:WebSocketContainerScope
The policy the container is running on.- Specified by:
getPolicy
in interfaceWebSocketContainerScope
- Returns:
- the websocket policy
-
getSslContextFactory
public org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()Description copied from interface:WebSocketContainerScope
The SslContextFactory in use by the container.- Specified by:
getSslContextFactory
in 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:
addSessionListener
in interfaceWebSocketContainerScope
-
removeSessionListener
- Specified by:
removeSessionListener
in interfaceWebSocketContainerScope
-
getSessionListeners
- Specified by:
getSessionListeners
in interfaceWebSocketContainerScope
-