ByteBufferPool, WebSocketExtensionRegistry, and DecoratedObjectFactory.
These components should be accessed through WebSocketServerComponents#getWebSocketComponents so that
the instance can be shared by being stored as a bean on the ContextHandler.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebSocketServerComponents(InflaterPool inflaterPool, DeflaterPool deflaterPool, ByteBufferPool bufferPool, DecoratedObjectFactory objectFactory, Executor executor)
|
| Modifier and Type | Method and Description |
|---|---|
| public static WebSocketComponents | Returns: the WebSocketComponents that was created or found on the ServletContext.the server. server, ContextHandler the ContextHandler. contextHandler)
This ensures a |
| public static WebSocketComponents | Returns: the WebSocketComponents that was created or found.the server. server)
This ensures a |
| private static WebSocketComponents | ensureWebSocketComponents(Server
the server. server, Attributes the attributes where the websocket components can be found. attributes, ContainerLifeCycle the container to manage the lifecycle of the WebSocketComponents instance. container)Returns: the WebSocketComponents that was created or found. |
| public static WebSocketComponents | |
| public static WebSocketComponents | |
| private static WebSocketComponents |
| WEBSOCKET_BUFFER_POOL_ATTRIBUTE | back to summary |
|---|---|
| public static final String WEBSOCKET_BUFFER_POOL_ATTRIBUTE | |
| WEBSOCKET_COMPONENTS_ATTRIBUTE | back to summary |
|---|---|
| public static final String WEBSOCKET_COMPONENTS_ATTRIBUTE | |
| WEBSOCKET_DEFLATER_POOL_ATTRIBUTE | back to summary |
|---|---|
| public static final String WEBSOCKET_DEFLATER_POOL_ATTRIBUTE | |
| WEBSOCKET_INFLATER_POOL_ATTRIBUTE | back to summary |
|---|---|
| public static final String WEBSOCKET_INFLATER_POOL_ATTRIBUTE | |
| WebSocketServerComponents | back to summary |
|---|---|
| pack-priv WebSocketServerComponents(InflaterPool inflaterPool, DeflaterPool deflaterPool, ByteBufferPool bufferPool, DecoratedObjectFactory objectFactory, Executor executor) | |
| ensureWebSocketComponents | back to summary |
|---|---|
| public static WebSocketComponents ensureWebSocketComponents(Server server, ContextHandler contextHandler)
This ensures a This should be called when the server is starting.
Servlet context attributes can be set with
| |
| ensureWebSocketComponents | back to summary |
|---|---|
| public static WebSocketComponents ensureWebSocketComponents(Server server)
This ensures a This should be called when the server is starting.
Server attributes can be set with
| |
| ensureWebSocketComponents | back to summary |
|---|---|
private static WebSocketComponents ensureWebSocketComponents(Server server, Attributes attributes, ContainerLifeCycle container)
| |
| getWebSocketComponents | back to summary |
|---|---|
| public static WebSocketComponents getWebSocketComponents(ContextHandler contextHandler) | |
| getWebSocketComponents | back to summary |
|---|---|
| public static WebSocketComponents getWebSocketComponents(Server server) | |
| getWebSocketComponents | back to summary |
|---|---|
| private static WebSocketComponents getWebSocketComponents(Attributes attributes) | |