java.lang.Object | ||
↳ | com.microstrategy.web.beans.GenericRequestKeys | |
↳ | com.microstrategy.web.app.beans.HttpRequestKeys |
The HttpRequestKeys class makes available to the application the values of
parameters passed on the URL (Query String), post (form data), cookies and
session variables.
It has been implemented as case insensitive, meaning that
if one key is recorded as "abc" with value "1" and another with key as "ABC"
and value "2", both values will be accessible via the same key (that can be
requested as "abc", "ABC", "aBC", etc)
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | COOKIE_SPACE | Flag for including cookies on the key space property of the HttpRequestKeys instance | |||||||||
int | FORM_AND_QUERY_DATA_SPACE | Flag for including form data on the key space property of the HttpRequestKeys instance | |||||||||
int | SESSION_SPACE | Flag for including session variables on the key space property of the HttpRequestKeys instance |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HttpRequestKeys(ContainerServices containerServices)
Class constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
add(String key, String value)
Add the requested key and its value to the collection.
| ||||||||||
Enumeration |
getKeyListByPrefix(String prefix)
Returns an enumeration over all the keys with the specified prefix.
| ||||||||||
int |
getKeySpace()
Get the key space set for this HttpRequestKeys instance.
| ||||||||||
String |
getValue(String keyName)
Returns from this collection a comma separated string of all the
values mapped by the specified
keyName . | ||||||||||
String |
getValue(String keyName, int valueIndex)
Returns the value at the specified position mapped by the specified
keyName.
| ||||||||||
int |
getValueCount(String keyName)
Returns from this collection the number of values mapped with the
keyName.
| ||||||||||
void |
setKeySpace(int keySpace)
Set the key space to be used with this HttpRequestKeys instance.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
initializeRequestKeys()
Initializes the collection with the values from the Request and/or Session, according to
what was specified by the keySpace.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Flag for including cookies on the key space property of the HttpRequestKeys instance
Flag for including form data on the key space property of the HttpRequestKeys instance
Flag for including session variables on the key space property of the HttpRequestKeys instance
Class constructor. Initialization requires a non-null Container Services object.
containerServices | an initialized instance of ContainerServices
|
---|
Add the requested key and its value to the collection. Before adding manually new key values, this RequestKeys instance should have initialized the session and request properties, so all the values are added correctly.
key | the key under which the new value will be appended |
---|---|
value | the value to be appended |
Returns an enumeration over all the keys with the specified prefix.
Returns all the keys if the specified prefix is null or empty.
Returns an empty list if no key is found.
prefix | the prefix of keys. |
---|
Get the key space set for this HttpRequestKeys instance.
int
value representing the flags from where the information
for the HttpRequestKeys is going to be taken from.
Returns from this collection a comma separated string of all the
values mapped by the specified keyName
.
keyName | a key in this collection |
---|
Returns the value at the specified position mapped by the specified keyName.
keyName | a key in this collection |
---|---|
valueIndex | the index of a value mapped to the key specified |
Returns from this collection the number of values mapped with the keyName.
keyName | a key to a value collection |
---|
Set the key space to be used with this HttpRequestKeys instance.
keySpace | an int value representing the flags from where the information
for the HttpRequestKeys is going to be taken from.
|
---|
Initializes the collection with the values from the Request and/or Session, according to what was specified by the keySpace.