| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private List | |
| private final JakartaWebSocketServerFrameHandlerFactory | |
| public static final String | |
| private static final Logger | |
| public static final String | |
| private final WebSocketMappings |
| Access | Constructor and Description |
|---|---|
| pack-priv | JakartaWebSocketServerContainer(WebSocketMappings
the webSocketMappings, WebSocketComponents WebSocketMappings that this container belongs tothe components, Function<WebSocketComponents, WebSocketCoreClient> WebSocketComponents instance to usethe supplier of the coreClientSupplier)WebSocketCoreClient instance to useMain entry point for |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEndpoint(Class<?>
the class of the annotated endpoint endpointClass)Implements jakarta. Deploys the given annotated endpoint into this ServerContainer. |
| public void | addEndpoint(ServerEndpointConfig
the configuration instance representing the logical endpoint that will be registered. providedConfig)Implements jakarta. Deploys the given endpoint described by the provided configuration into this ServerContainer. |
| private void | |
| protected void | |
| protected void | |
| protected void | doStart()
Overrides org. Starts the managed lifecycle beans in the order they were added. |
| public static JakartaWebSocketServerContainer | |
| public static JakartaWebSocketServerContainer | |
| public JakartaWebSocketServerFrameHandlerFactory | |
| public void | upgradeHttpToWebSocket(Object
The httpServletRequest, Object HttpServletRequest to be processed as a WebSocket handshake as per
section 4.0 of RFC 6455.The httpServletResponse, ServerEndpointConfig HttpServletResponse to be used when processing the
httpServletRequest as a WebSocket handshake as per section 4.0 of RFC 6455.The server endpoint configuration to use to configure the WebSocket endpoint sec, Map<String, String> Provides a mapping of path parameter names and values, if any, to be used for the
WebSocket connection established by the call to this method. If no such mapping is
defined, an empty Map must be passed. pathParameters)Implements jakarta. Upgrade the HTTP connection represented by the |
| private void |
| deferredEndpointClasses | back to summary |
|---|---|
| private List<Class<?>> deferredEndpointClasses | |
| deferredEndpointConfigs | back to summary |
|---|---|
| private List<ServerEndpointConfig> deferredEndpointConfigs | |
| frameHandlerFactory | back to summary |
|---|---|
| private final JakartaWebSocketServerFrameHandlerFactory frameHandlerFactory Hides org. | |
| JAKARTA_WEBSOCKET_CONTAINER_ATTRIBUTE | back to summary |
|---|---|
| public static final String JAKARTA_WEBSOCKET_CONTAINER_ATTRIBUTE | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| PATH_PARAM_ATTRIBUTE | back to summary |
|---|---|
| public static final String PATH_PARAM_ATTRIBUTE | |
| webSocketMappings | back to summary |
|---|---|
| private final WebSocketMappings webSocketMappings | |
| JakartaWebSocketServerContainer | back to summary |
|---|---|
| pack-priv JakartaWebSocketServerContainer(WebSocketMappings webSocketMappings, WebSocketComponents components, Function<WebSocketComponents, WebSocketCoreClient> coreClientSupplier) Main entry point for
| |
| addEndpoint | back to summary |
|---|---|
| public void addEndpoint(Class<?> endpointClass) throws DeploymentException Implements jakarta. Doc from jakarta. Deploys the given annotated endpoint into this ServerContainer.
| |
| addEndpoint | back to summary |
|---|---|
| public void addEndpoint(ServerEndpointConfig providedConfig) throws DeploymentException Implements jakarta. Doc from jakarta. Deploys the given endpoint described by the provided configuration into this ServerContainer.
| |
| addEndpointMapping | back to summary |
|---|---|
| private void addEndpointMapping(ServerEndpointConfig config) throws DeploymentException | |
| doClientStart | back to summary |
|---|---|
| protected void doClientStart() Overrides org.
| |
| doClientStop | back to summary |
|---|---|
| protected void doClientStop() Overrides org.
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| ensureContainer | back to summary |
|---|---|
| public static JakartaWebSocketServerContainer ensureContainer(ServletContext servletContext) | |
| getContainer | back to summary |
|---|---|
| public static JakartaWebSocketServerContainer getContainer(ServletContext servletContext) | |
| getFrameHandlerFactory | back to summary |
|---|---|
public JakartaWebSocketServerFrameHandlerFactory getFrameHandlerFactory()
| |
| upgradeHttpToWebSocket | back to summary |
|---|---|
| public void upgradeHttpToWebSocket(Object httpServletRequest, Object httpServletResponse, ServerEndpointConfig sec, Map<String, String> pathParameters) throws IOException, DeploymentException Implements jakarta. Doc from jakarta. Upgrade the HTTP connection represented by the This method is primarily intended to be used by frameworks that implement the front-controller pattern. It does not deploy the provided endpoint.
If the WebSocket implementation is not deployed as part of a Jakarta Servlet container, this method will throw an
| |
| validateEndpointConfig | back to summary |
|---|---|
| private void validateEndpointConfig(ServerEndpointConfig config) throws DeploymentException | |