public final class RequestHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TIMEOUT |
static String |
URL_ARGS |
static String |
USER_AGENT |
static String |
WS_COOKIES |
static String |
WS_DRAFT |
static String |
WS_HOST |
static String |
WS_LOCATION |
static String |
WS_ORIGIN |
static String |
WS_PATH |
static String |
WS_PROTOCOL |
static String |
WS_SEARCHSTRING |
static String |
WS_SECKEY |
static String |
WS_SECKEY1 |
static String |
WS_SECKEY2 |
static String |
WS_VERSION |
| Constructor and Description |
|---|
RequestHeader() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String aKey)
Returns the object value for the given key or
null if the key
does not exist in the header. |
Map |
getArgs()
Returns a Map of the optional URL arguments passed by the client.
|
Map |
getCookies() |
String |
getFormat()
Returns the subprotocol format in which messages are exchanged between
client and server.
|
String |
getString(String aKey)
Returns the string value for the given key or
null if the key
does not exist in the header. |
String |
getSubProtocol()
Returns the sub protocol passed by the client or a default value if no
sub protocol has been passed either in the header or in the URL
arguments.
|
Integer |
getTimeout(Integer aDefault)
Returns the session timeout passed by the client or a default value if no
session timeout has been passed either in the header or in the URL
arguments.
|
int |
getVersion() |
void |
put(String aKey,
Object aValue)
Puts a new object value to the request header.
|
public static final String WS_PROTOCOL
public static final String WS_DRAFT
public static final String WS_VERSION
public static final String WS_ORIGIN
public static final String WS_LOCATION
public static final String WS_PATH
public static final String WS_SEARCHSTRING
public static final String WS_HOST
public static final String WS_SECKEY
public static final String WS_SECKEY1
public static final String WS_SECKEY2
public static final String WS_COOKIES
public static final String URL_ARGS
public static final String TIMEOUT
public static final String USER_AGENT
public void put(String aKey, Object aValue)
aKey - aValue - public Object get(String aKey)
null if the key
does not exist in the header.aKey - null.public String getString(String aKey)
null if the key
does not exist in the header.aKey - null.public Map getArgs()
public String getSubProtocol()
public String getFormat()
public Integer getTimeout(Integer aDefault)
aDefault - public int getVersion()
public Map getCookies()
Copyright © 2013. All Rights Reserved.