Class DelegatedContainerScope
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.scopes.DelegatedContainerScope
-
- All Implemented Interfaces:
WebSocketContainerScope
public class DelegatedContainerScope extends Object implements WebSocketContainerScope
-
-
Constructor Summary
Constructors Constructor Description DelegatedContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, WebSocketContainerScope parentScope)
-
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.booleanisRunning()Test for if the container has been started.voidonSessionClosed(WebSocketSession session)A Session has been closedvoidonSessionOpened(WebSocketSession session)A Session has been opened
-
-
-
Constructor Detail
-
DelegatedContainerScope
public DelegatedContainerScope(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, WebSocketContainerScope parentScope)
-
-
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)
-
isRunning
public boolean isRunning()
Description copied from interface:WebSocketContainerScopeTest for if the container has been started.- Specified by:
isRunningin interfaceWebSocketContainerScope- Returns:
- true if container is started and running
-
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
-
-