ServerContainer and upgrades HTTP handshake requests.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | WebSocketEngine.
Upgrade info that includes status for HTTP request upgrading and connection creation details. |
| public static enum | WebSocketEngine.
Upgrade Status for HTTP request upgrading. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | register(ServerEndpointConfig
server endpoint to be registered. serverConfig, String context path of the registered endpoint. contextPath) |
| public WebSocketEngine. | Returns: info about upgrade status and connection details.request to be upgraded. request, UpgradeResponse response to the upgrade request. response)A transport calls this method to upgrade a HTTP request. |
| register | back to summary |
|---|---|
| public void register(Class<?> endpointClass, String contextPath) throws DeploymentException Register endpoint class.
| |
| register | back to summary |
|---|---|
| public void register(ServerEndpointConfig serverConfig, String contextPath) throws DeploymentException Register
| |
| upgrade | back to summary |
|---|---|
| public WebSocketEngine. A transport calls this method to upgrade a HTTP request.
| |
| Modifier and Type | Method and Description |
|---|---|
| public Connection | Returns: upgraded connection if the upgrade is successful otherwise null.transport writer that actually writes tyrus websocket data to underlying connection. writer, Connection.transport listener for receiving tyrus close notifications. closeListenerCreates a connection if the upgrade is successful. |
| public WebSocketEngine. |
| createConnection | back to summary |
|---|---|
| public Connection createConnection(Writer writer, Connection. Creates a connection if the upgrade is successful. Tyrus would call onConnect lifecycle method on the endpoint during the invocation of this method.
| |
| getStatus | back to summary |
|---|---|
| public WebSocketEngine. Returns the status of HTTP request upgrade.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final WebSocketEngine. | HANDSHAKE_FAILED
Upgrade failed due to version, extensions, origin check etc. Tyrus would set an appropriate HTTP error status
code in |
| public static final WebSocketEngine. | NOT_APPLICABLE
Not a WebSocketRequest or no mapping in the application. |
| public static final WebSocketEngine. | SUCCESS
Upgrade is successful. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WebSocketEngine. | |
| public static WebSocketEngine. |
| HANDSHAKE_FAILED | back to summary |
|---|---|
| public static final WebSocketEngine. Upgrade failed due to version, extensions, origin check etc. Tyrus would set an appropriate HTTP error status
code in | |
| NOT_APPLICABLE | back to summary |
|---|---|
| public static final WebSocketEngine. Not a WebSocketRequest or no mapping in the application. This may mean that HTTP request processing should continue (in servlet container, the next filter may be called). | |
| SUCCESS | back to summary |
|---|---|
| public static final WebSocketEngine. Upgrade is successful. | |
| UpgradeStatus | back to summary |
|---|---|
| private UpgradeStatus() | |
| valueOf | back to summary |
|---|---|
| public static WebSocketEngine. | |
| values | back to summary |
|---|---|
| public static WebSocketEngine. | |