| Modifier and Type | Field and Description |
|---|---|
| protected final WebSocketComponents | |
| protected final Configuration. | |
| private static final Logger | |
| private final List | |
| protected final SessionTracker |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSessionListener(JakartaWebSocketSessionListener
the listener listener)Register a WebSocketSessionListener with the container |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Overrides org. Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| public ByteBufferPool | |
| public long | getDefaultAsyncSendTimeout()
Implements jakarta. Return the number of milliseconds the implementation will timeout attempting to send a websocket message for all RemoteEndpoints associated with this container. |
| public int | getDefaultMaxBinaryMessageBufferSize()
Implements jakarta. Returns the default maximum size of incoming binary message that this container will buffer. |
| public long | getDefaultMaxSessionIdleTimeout()
Implements jakarta. Return the default time in milliseconds after which any web socket sessions in this container will be closed if it has been inactive. |
| public int | getDefaultMaxTextMessageBufferSize()
Implements jakarta. Returns the default maximum size of incoming text message that this container will buffer. |
| public abstract Executor | |
| public WebSocketExtensionRegistry | |
| protected abstract JakartaWebSocketFrameHandlerFactory | |
| public Set | getInstalledExtensions()
Implements jakarta. Return the set of Extensions installed in the container. |
| public DecoratedObjectFactory | |
| public Set | Returns: the set of open sessions |
| public WebSocketComponents | |
| public JakartaWebSocketFrameHandler | |
| public void | notifySessionListeners(Consumer<JakartaWebSocketSessionListener>
the consumer to pass to each listener consumer)Notify Session Listeners of events |
| public boolean | Returns: true if listener was present and removedthe listener listener)Remove a WebSocketSessionListener from the container |
| public void | setAsyncSendTimeout(long
the timeout in milliseconds; use zero or negative value for no timeout ms)Implements jakarta. Sets the number of milliseconds the implementation will timeout attempting to send a websocket message for all RemoteEndpoints associated with this container. |
| public void | setDefaultMaxBinaryMessageBufferSize(int
the maximum size of binary message in number of bytes. max)Implements jakarta. Sets the default maximum size of incoming binary message that this container will buffer. |
| public void | setDefaultMaxSessionIdleTimeout(long
the maximum time in milliseconds; use zero or negative value for no timeout ms)Implements jakarta. Sets the default time in milliseconds after which any web socket sessions in this container will be closed if it has been inactive. |
| public void | setDefaultMaxTextMessageBufferSize(int
the maximum size of text message in number of bytes. max)Implements jakarta. Sets the maximum size of incoming text message that this container will buffer. |
| components | back to summary |
|---|---|
| protected final WebSocketComponents components | |
| defaultCustomizer | back to summary |
|---|---|
| protected final Configuration. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| sessionListeners | back to summary |
|---|---|
| private final List<JakartaWebSocketSessionListener> sessionListeners | |
| sessionTracker | back to summary |
|---|---|
| protected final SessionTracker sessionTracker | |
| JakartaWebSocketContainer | back to summary |
|---|---|
| public JakartaWebSocketContainer(WebSocketComponents components) | |
| addSessionListener | back to summary |
|---|---|
| public void addSessionListener(JakartaWebSocketSessionListener listener) Register a WebSocketSessionListener with the container
| |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Overrides org. Implements org. Doc from org. Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
| |
| getByteBufferPool | back to summary |
|---|---|
| public ByteBufferPool getByteBufferPool() | |
| getDefaultAsyncSendTimeout | back to summary |
|---|---|
| public long getDefaultAsyncSendTimeout() Implements jakarta. Doc from jakarta. Return the number of milliseconds the implementation will timeout attempting to send a websocket message for all RemoteEndpoints associated with this container. A zero or negative value indicates the implementation will not timeout attempting to send a websocket message asynchronously. Note this default may be overridden in each RemoteEndpoint.
| |
| getDefaultMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public int getDefaultMaxBinaryMessageBufferSize() Implements jakarta. Doc from jakarta. Returns the default maximum size of incoming binary message that this container will buffer. This default may be
overridden on a per session basis using
| |
| getDefaultMaxSessionIdleTimeout | back to summary |
|---|---|
| public long getDefaultMaxSessionIdleTimeout() Implements jakarta. Doc from jakarta. Return the default time in milliseconds after which any web socket sessions in this container will be closed if
it has been inactive. A value that is zero or negative indicates the sessions will never timeout due to inactivity.
The value may be overridden on a per session basis using
| |
| getDefaultMaxTextMessageBufferSize | back to summary |
|---|---|
| public int getDefaultMaxTextMessageBufferSize() Implements jakarta. Doc from jakarta. Returns the default maximum size of incoming text message that this container will buffer. This default may be
overridden on a per session basis using
| |
| getExecutor | back to summary |
|---|---|
| public abstract Executor getExecutor() | |
| getExtensionRegistry | back to summary |
|---|---|
| public WebSocketExtensionRegistry getExtensionRegistry() | |
| getFrameHandlerFactory | back to summary |
|---|---|
| protected abstract JakartaWebSocketFrameHandlerFactory getFrameHandlerFactory() | |
| getInstalledExtensions | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Return the set of Extensions installed in the container.
| |
| getObjectFactory | back to summary |
|---|---|
| public DecoratedObjectFactory getObjectFactory() | |
| getOpenSessions | back to summary |
|---|---|
| public Set | |
| getWebSocketComponents | back to summary |
|---|---|
| public WebSocketComponents getWebSocketComponents() | |
| newFrameHandler | back to summary |
|---|---|
| public JakartaWebSocketFrameHandler newFrameHandler(Object websocketPojo, UpgradeRequest upgradeRequest) | |
| notifySessionListeners | back to summary |
|---|---|
| public void notifySessionListeners(Consumer<JakartaWebSocketSessionListener> consumer) Notify Session Listeners of events
| |
| removeSessionListener | back to summary |
|---|---|
| public boolean removeSessionListener(JakartaWebSocketSessionListener listener) Remove a WebSocketSessionListener from the container
| |
| setAsyncSendTimeout | back to summary |
|---|---|
| public void setAsyncSendTimeout(long ms) Implements jakarta. Doc from jakarta. Sets the number of milliseconds the implementation will timeout attempting to send a websocket message for all RemoteEndpoints associated with this container. A zero or negative value indicates the implementation will not timeout attempting to send a websocket message asynchronously. Note this default may be overridden in each RemoteEndpoint.
| |
| setDefaultMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public void setDefaultMaxBinaryMessageBufferSize(int max) Implements jakarta. Doc from jakarta. Sets the default maximum size of incoming binary message that this container will buffer.
| |
| setDefaultMaxSessionIdleTimeout | back to summary |
|---|---|
| public void setDefaultMaxSessionIdleTimeout(long ms) Implements jakarta. Doc from jakarta. Sets the default time in milliseconds after which any web socket sessions in this container will be closed if it
has been inactive. A value that is zero or negative indicates the sessions will never timeout due to inactivity. The
value may be overridden on a per session basis using
| |
| setDefaultMaxTextMessageBufferSize | back to summary |
|---|---|
| public void setDefaultMaxTextMessageBufferSize(int max) Implements jakarta. Doc from jakarta. Sets the maximum size of incoming text message that this container will buffer.
| |