public abstract class UpgradeRequest extends java.lang.Object implements HandshakeRequest
WebSocketEngine.upgrade(org.glassfish.tyrus.spi.UpgradeRequest, org.glassfish.tyrus.spi.UpgradeResponse)
method to upgrade the
request.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHORIZATION
HTTP "Authorization" header name.
|
static java.lang.String |
CLUSTER_CONNECTION_ID_HEADER
Tyrus cluster connection ID header name.
|
static java.lang.String |
CONNECTION
HTTP "Connection" header name.
|
static java.lang.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.
|
static java.lang.String |
HOST
HTTP "Host" header name.
|
static java.lang.String |
ORIGIN_HEADER
HTTP "Origin" header name.
|
static java.lang.String |
RESPONSE_CODE_MESSAGE
HTTP reason phrase for successful handshake response.
|
static java.lang.String |
SEC_WS_ORIGIN_HEADER
WebSocket origin header name from previous versions.
|
static java.lang.String |
SERVER_KEY_HASH
Server key hash used to compute "Sec-WebSocket-Accept" header value.
|
static java.lang.String |
TRACING_THRESHOLD
This header allows temporarily changing tracing threshold.
|
static java.lang.String |
UPGRADE
HTTP "Upgrade" header name and "Connection" header expected value.
|
static java.lang.String |
WEBSOCKET
Expected value in HTTP handshake "Upgrade" header.
|
SEC_WEBSOCKET_EXTENSIONS, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION
Constructor and Description |
---|
UpgradeRequest() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getHeader(java.lang.String name)
Returns the value of the specified request header name.
|
abstract java.lang.String |
getRequestUri()
Get the undecoded request uri (up to the query string) of underlying
HTTP handshake request.
|
abstract boolean |
isSecure()
Indicates whether this request was made using a secure channel
(such as HTTPS).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaders, getHttpSession, getParameterMap, getQueryString, getRequestURI, getUserPrincipal, isUserInRole
public static final java.lang.String WEBSOCKET
(Registered in RFC 6455).
public static final java.lang.String RESPONSE_CODE_MESSAGE
public static final java.lang.String UPGRADE
public static final java.lang.String CONNECTION
public static final java.lang.String HOST
public static final java.lang.String SEC_WS_ORIGIN_HEADER
Keeping here only for backwards compatibility, not used anymore.
public static final java.lang.String ORIGIN_HEADER
public static final java.lang.String CLUSTER_CONNECTION_ID_HEADER
public static final java.lang.String SERVER_KEY_HASH
Defined in RFC 6455.
public static final java.lang.String AUTHORIZATION
public static final java.lang.String ENABLE_TRACING_HEADER
Setting this header does not have any effect if the tracing type is configured to "ALL" or "OFF".
public static final java.lang.String TRACING_THRESHOLD
The expected values are "SUMMARY" or "TRACE", of which "TRACE" will provide more fine-grained information.
public abstract java.lang.String getHeader(java.lang.String name)
name
- a header name.public abstract java.lang.String getRequestUri()
public abstract boolean isSecure()
Copyright © 2012–2020 Oracle Corporation. All rights reserved.