Class DelegatedContainerScope
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.scopes.DelegatedContainerScope
-
- All Implemented Interfaces:
WebSocketContainerScope
public class DelegatedContainerScope extends java.lang.Object implements WebSocketContainerScope
-
-
Constructor Summary
Constructors Constructor Description DelegatedContainerScope(WebSocketPolicy policy, WebSocketContainerScope parentScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSessionListener(WebSocketSessionListener listener)
ByteBufferPool
getBufferPool()
The configured Container Buffer Pool.java.util.concurrent.Executor
getExecutor()
Executor in use by the container.DecoratedObjectFactory
getObjectFactory()
Object Factory used to create objects.WebSocketPolicy
getPolicy()
The policy the container is running on.java.util.Collection<WebSocketSessionListener>
getSessionListeners()
SslContextFactory
getSslContextFactory()
The SslContextFactory in use by the container.boolean
isRunning()
Test for if the container has been started.void
removeSessionListener(WebSocketSessionListener listener)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.websocket.common.scopes.WebSocketContainerScope
getClassLoader
-
-
-
-
Constructor Detail
-
DelegatedContainerScope
public DelegatedContainerScope(WebSocketPolicy policy, WebSocketContainerScope parentScope)
-
-
Method Detail
-
getBufferPool
public ByteBufferPool getBufferPool()
Description copied from interface:WebSocketContainerScope
The configured Container Buffer Pool.- Specified by:
getBufferPool
in interfaceWebSocketContainerScope
- Returns:
- the buffer pool (never null)
-
getExecutor
public java.util.concurrent.Executor 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 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
public WebSocketPolicy getPolicy()
Description copied from interface:WebSocketContainerScope
The policy the container is running on.- Specified by:
getPolicy
in interfaceWebSocketContainerScope
- Returns:
- the websocket policy
-
getSslContextFactory
public 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)
-
isRunning
public boolean isRunning()
Description copied from interface:WebSocketContainerScope
Test for if the container has been started.- Specified by:
isRunning
in interfaceWebSocketContainerScope
- Returns:
- true if container is started and running
-
addSessionListener
public void addSessionListener(WebSocketSessionListener listener)
- Specified by:
addSessionListener
in interfaceWebSocketContainerScope
-
removeSessionListener
public void removeSessionListener(WebSocketSessionListener listener)
- Specified by:
removeSessionListener
in interfaceWebSocketContainerScope
-
getSessionListeners
public java.util.Collection<WebSocketSessionListener> getSessionListeners()
- Specified by:
getSessionListeners
in interfaceWebSocketContainerScope
-
-