This web socket server endpoint handles web socket requests coming from <f:websocket>.
Push
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Logger | |
| pack-priv static final String | PARAM_CHANNEL
The URI path parameter name of the web socket channel. |
| private static final CloseReason | |
| public static final String | URI_TEMPLATE
The context-relative URI template where the web socket endpoint should listen on. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | onClose(Session
The closed web socket session. session, CloseReason The close reason. reason)Overrides jakarta. Remove given web socket session from the |
| public void | onError(Session
The errored web socket session. session, Throwable The cause. throwable)Overrides jakarta. Delegate exception to onClose. |
| public void | onOpen(Session
The opened web socket session. session, EndpointConfig The endpoint configuration. config)Implements abstract jakarta. Add given web socket session to the |
| ERROR_EXCEPTION | back to summary |
|---|---|
| private static final String ERROR_EXCEPTION | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| PARAM_CHANNEL | back to summary |
|---|---|
| pack-priv static final String PARAM_CHANNEL The URI path parameter name of the web socket channel. | |
| REASON_UNKNOWN_CHANNEL | back to summary |
|---|---|
| private static final CloseReason REASON_UNKNOWN_CHANNEL | |
| URI_TEMPLATE | back to summary |
|---|---|
| public static final String URI_TEMPLATE The context-relative URI template where the web socket endpoint should listen on. | |
| WebsocketEndpoint | back to summary |
|---|---|
| public WebsocketEndpoint() | |
| onClose | back to summary |
|---|---|
| public void onClose(Session session, CloseReason reason) Overrides jakarta. Remove given web socket session from the
| |
| onError | back to summary |
|---|---|
| public void onError(Session session, Throwable throwable) Overrides jakarta. Delegate exception to onClose. | |
| onOpen | back to summary |
|---|---|
| public void onOpen(Session session, EndpointConfig config) Implements abstract jakarta. Add given web socket session to the
| |