| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final CloseReason | |
| private final Map | |
| private final Map | |
| private final Map | |
| private volatile boolean | |
| private volatile boolean | |
| private final ServletContext | |
| private static final StringManager | |
| private final WsWriteTimeout |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEndpoint(ServerEndpointConfig
The configuration to use when creating endpoint instances sec)Implements jakarta. Published the provided endpoint implementation at the specified path with the specified configuration. |
| pack-priv void | |
| public void | addEndpoint(Class<?>
The annotated POJO pojo)Implements jakarta. Provides the equivalent of |
| pack-priv void | |
| pack-priv boolean | |
| public void | |
| pack-priv void | |
| public WsMappingResult | |
| protected InstanceManager | getInstanceManager(ClassLoader classLoader)
Overrides org. Overridden to make it visible to other classes in this package. |
| protected WsWriteTimeout | |
| private void | |
| protected void | registerSession(Object key, WsSession wsSession)
Overrides org. Overridden to make it visible to other classes in this package. |
| private void | |
| protected void | unregisterSession(Object key, WsSession wsSession)
Overrides org. Overridden to make it visible to other classes in this package. |
| 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 static void |
| AUTHENTICATED_HTTP_SESSION_CLOSED | back to summary |
|---|---|
| private static final CloseReason AUTHENTICATED_HTTP_SESSION_CLOSED | |
| authenticatedSessions | back to summary |
|---|---|
| private final Map<String, Set<WsSession>> authenticatedSessions | |
| configExactMatchMap | back to summary |
|---|---|
| private final Map<String, WsServerContainer. | |
| configTemplateMatchMap | back to summary |
|---|---|
| private final Map<Integer, ConcurrentSkipListMap<String, WsServerContainer. | |
| deploymentFailed | back to summary |
|---|---|
| private volatile boolean deploymentFailed | |
| endpointsRegistered | back to summary |
|---|---|
| private volatile boolean endpointsRegistered | |
| servletContext | back to summary |
|---|---|
| private final ServletContext servletContext | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| wsWriteTimeout | back to summary |
|---|---|
| private final WsWriteTimeout wsWriteTimeout | |
| WsServerContainer | back to summary |
|---|---|
| pack-priv WsServerContainer(ServletContext servletContext) | |
| addEndpoint | back to summary |
|---|---|
| public void addEndpoint(ServerEndpointConfig sec) throws DeploymentException Implements jakarta. Published the provided endpoint implementation at the specified path with the specified configuration.
| |
| addEndpoint | back to summary |
|---|---|
| pack-priv void addEndpoint(ServerEndpointConfig sec, boolean fromAnnotatedPojo) throws DeploymentException | |
| addEndpoint | back to summary |
|---|---|
| public void addEndpoint(Class<?> pojo) throws DeploymentException Implements jakarta. Provides the equivalent of | |
| addEndpoint | back to summary |
|---|---|
| pack-priv void addEndpoint(Class<?> pojo, boolean fromAnnotatedPojo) throws DeploymentException | |
| areEndpointsRegistered | back to summary |
|---|---|
| pack-priv boolean areEndpointsRegistered() | |
| closeAuthenticatedSession | back to summary |
|---|---|
| public void closeAuthenticatedSession(String httpSessionId) | |
| failDeployment | back to summary |
|---|---|
| pack-priv void failDeployment() | |
| findMapping | back to summary |
|---|---|
| public WsMappingResult findMapping(String path) | |
| getInstanceManager | back to summary |
|---|---|
| protected InstanceManager getInstanceManager(ClassLoader classLoader) Overrides org. Overridden to make it visible to other classes in this package.
| |
| getTimeout | back to summary |
|---|---|
| protected WsWriteTimeout getTimeout() | |
| registerAuthenticatedSession | back to summary |
|---|---|
| private void registerAuthenticatedSession(WsSession wsSession, String httpSessionId) | |
| registerSession | back to summary |
|---|---|
| protected void registerSession(Object key, WsSession wsSession) Overrides org. Overridden to make it visible to other classes in this package.
| |
| unregisterAuthenticatedSession | back to summary |
|---|---|
| private void unregisterAuthenticatedSession(WsSession wsSession, String httpSessionId) | |
| unregisterSession | back to summary |
|---|---|
| protected void unregisterSession(Object key, WsSession wsSession) Overrides org. Overridden to make it visible to other classes in this package.
| |
| 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
| |
| validateEncoders | back to summary |
|---|---|
| private static void validateEncoders(Class<? extends Encoder>[] encoders, InstanceManager instanceManager) throws DeploymentException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerEndpointConfig | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ServerEndpointConfig | |
| public boolean |
| config | back to summary |
|---|---|
| private final ServerEndpointConfig config | |
| fromAnnotatedPojo | back to summary |
|---|---|
| private final boolean fromAnnotatedPojo | |
| ExactPathMatch | back to summary |
|---|---|
| pack-priv ExactPathMatch(ServerEndpointConfig config, boolean fromAnnotatedPojo) | |
| getConfig | back to summary |
|---|---|
| public ServerEndpointConfig getConfig() | |
| isFromAnnotatedPojo | back to summary |
|---|---|
| public boolean isFromAnnotatedPojo() | |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerEndpointConfig | |
| private final boolean | |
| private final UriTemplate |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ServerEndpointConfig | |
| public UriTemplate | |
| public boolean |
| config | back to summary |
|---|---|
| private final ServerEndpointConfig config | |
| fromAnnotatedPojo | back to summary |
|---|---|
| private final boolean fromAnnotatedPojo | |
| uriTemplate | back to summary |
|---|---|
| private final UriTemplate uriTemplate | |
| TemplatePathMatch | back to summary |
|---|---|
| pack-priv TemplatePathMatch(ServerEndpointConfig config, UriTemplate uriTemplate, boolean fromAnnotatedPojo) | |
| getConfig | back to summary |
|---|---|
| public ServerEndpointConfig getConfig() | |
| getUriTemplate | back to summary |
|---|---|
| public UriTemplate getUriTemplate() | |
| isFromAnnotatedPojo | back to summary |
|---|---|
| public boolean isFromAnnotatedPojo() | |