| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| 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)Upgrade the HTTP connection represented by the |
| addEndpoint | back to summary |
|---|---|
| public void addEndpoint(Class<?> clazz) throws DeploymentException | |
| addEndpoint | back to summary |
|---|---|
| public void addEndpoint(ServerEndpointConfig sec) throws DeploymentException | |
| upgradeHttpToWebSocket | back to summary |
|---|---|
| public void upgradeHttpToWebSocket(Object httpServletRequest, Object httpServletResponse, ServerEndpointConfig sec, Map<String, String> pathParameters) throws IOException, DeploymentException 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
| |