public abstract class UpgradeRequest extends Object implements javax.websocket.server.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 |
| 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).
|
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.