WebSocketEngine#upgrade method to upgrade the
request.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | AUTHORIZATION
HTTP "Authorization" header name. |
| public static final String | CLUSTER_CONNECTION_ID_HEADER
Tyrus cluster connection ID header name. |
| public static final String | CONNECTION
HTTP "Connection" header name. |
| public static final String | ENABLE_TRACING_HEADER
If this header is present in the handshake request and the tracing type is configured to "ON_DEMAND", tracing headers will be sent in the handshake response. |
| public static final String | HOST
HTTP "Host" header name. |
| public static final String | ORIGIN_HEADER
HTTP "Origin" header name. |
| public static final String | RESPONSE_CODE_MESSAGE
HTTP reason phrase for successful handshake response. |
| public static final String | SEC_WS_ORIGIN_HEADER
WebSocket origin header name from previous versions. |
| public static final String | SERVER_KEY_HASH
Server key hash used to compute "Sec-WebSocket-Accept" header value. |
| public static final String | TRACING_THRESHOLD
This header allows temporarily changing tracing threshold. |
| public static final String | UPGRADE
HTTP "Upgrade" header name and "Connection" header expected value. |
| public static final String | WEBSOCKET
Expected value in HTTP handshake "Upgrade" header. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | |
| public abstract String | Returns: request uri.Get the undecoded request uri (up to the query string) of underlying HTTP handshake request. |
| public abstract boolean | Returns: true if the request was made using secure channel, false otherwise.Indicates whether this request was made using a secure channel (such as HTTPS). |
| AUTHORIZATION | back to summary |
|---|---|
| public static final String AUTHORIZATION HTTP "Authorization" header name. | |
| CLUSTER_CONNECTION_ID_HEADER | back to summary |
|---|---|
| public static final String CLUSTER_CONNECTION_ID_HEADER Tyrus cluster connection ID header name. | |
| CONNECTION | back to summary |
|---|---|
| public static final String CONNECTION HTTP "Connection" header name. | |
| ENABLE_TRACING_HEADER | back to summary |
|---|---|
| public static final String ENABLE_TRACING_HEADER If this header is present in the handshake request and the tracing type is configured to "ON_DEMAND", tracing headers will be sent in the handshake response. The value of the header is no taken into account. Setting this header does not have any effect if the tracing type is configured to "ALL" or "OFF". | |
| HOST | back to summary |
|---|---|
| public static final String HOST HTTP "Host" header name. | |
| ORIGIN_HEADER | back to summary |
|---|---|
| public static final String ORIGIN_HEADER HTTP "Origin" header name. | |
| RESPONSE_CODE_MESSAGE | back to summary |
|---|---|
| public static final String RESPONSE_CODE_MESSAGE HTTP reason phrase for successful handshake response. | |
| SEC_WS_ORIGIN_HEADER | back to summary |
|---|---|
| public static final String SEC_WS_ORIGIN_HEADER WebSocket origin header name from previous versions. Keeping here only for backwards compatibility, not used anymore.
| |
| SERVER_KEY_HASH | back to summary |
|---|---|
| public static final String SERVER_KEY_HASH Server key hash used to compute "Sec-WebSocket-Accept" header value. Defined in RFC 6455. | |
| TRACING_THRESHOLD | back to summary |
|---|---|
| public static final String TRACING_THRESHOLD This header allows temporarily changing tracing threshold. If present in the handshake request, the tracing threshold will be changed for the handshake the request is part of. The expected values are "SUMMARY" or "TRACE", of which "TRACE" will provide more fine-grained information. | |
| UPGRADE | back to summary |
|---|---|
| public static final String UPGRADE HTTP "Upgrade" header name and "Connection" header expected value. | |
| WEBSOCKET | back to summary |
|---|---|
| public static final String WEBSOCKET Expected value in HTTP handshake "Upgrade" header. (Registered in RFC 6455). | |
| UpgradeRequest | back to summary |
|---|---|
| public UpgradeRequest() | |
| getHeader | back to summary |
|---|---|
| public abstract String getHeader(String name) Returns the value of the specified request header name. If there are multiple headers with the same name, this method returns the first header in the request. The header name is case insensitive. | |
| getRequestUri | back to summary |
|---|---|
| public abstract String getRequestUri() Get the undecoded request uri (up to the query string) of underlying HTTP handshake request.
| |
| isSecure | back to summary |
|---|---|
| public abstract boolean isSecure() Indicates whether this request was made using a secure channel (such as HTTPS).
| |