public abstract class UpgradeRequest extends 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 String |
CLUSTER_CONNECTION_ID_HEADER |
static String |
CONNECTION |
static String |
HOST |
static String |
ORIGIN_HEADER |
static String |
RESPONSE_CODE_MESSAGE |
static String |
SEC_WS_ORIGIN_HEADER |
static String |
SERVER_KEY_HASH |
static String |
UPGRADE |
static String |
WEBSOCKET |
SEC_WEBSOCKET_EXTENSIONS, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION
Constructor and Description |
---|
UpgradeRequest() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getHeader(String name)
Returns the value of the specified request header name.
|
abstract 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 String WEBSOCKET
public static final String RESPONSE_CODE_MESSAGE
public static final String UPGRADE
public static final String CONNECTION
public static final String HOST
public static final String SERVER_KEY_HASH
public static final String SEC_WS_ORIGIN_HEADER
public static final String ORIGIN_HEADER
public static final String CLUSTER_CONNECTION_ID_HEADER
public abstract String getHeader(String name)
name
- a header name.public abstract String getRequestUri()
public abstract boolean isSecure()
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.