com.microstrategy.web.beans.RequestKeys |
![]() |
This interface stores a collection of keys from the request context. Each key is also a collection of values that may have originated from one of several different sources (such as the URL query string, form data, cookies or session variables).
To walk through the list of all unique names, use the getName
method supplying an index from 0
to the value of getNameCount - 1
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
add(String key, String value)
Adds a key/value pair to this collection.
| ||||||||||
abstract Object |
addObject(String key, Object value)
Adds a key/value pair to this collection.
| ||||||||||
abstract MarkupOutput |
getDebugOut()
Get the Debug Information into the output
| ||||||||||
abstract int |
getIntValue(String key, int index)
Parses the value of given request key to an integer.
| ||||||||||
abstract int |
getIntValue(String keyName, int valueIndex, int defaultValue)
Parses the value of given request key to an integer.
| ||||||||||
abstract Enumeration |
getKeyListByPrefix(String prefix)
Returns an enumeration over all the keys with the specified prefix.
| ||||||||||
abstract String |
getName(int nameIndex)
Returns the name at the specified index from the current collection.
| ||||||||||
abstract int |
getNameCount()
Returns the number of names stored in the current collection.
| ||||||||||
abstract Source |
getSource(String key)
Determines where a given request key was sourced from.
| ||||||||||
abstract String |
getValue(String keyName)
Returns from this collection a comma separated string of all the
values mapped by the specified
keyName . | ||||||||||
abstract String |
getValue(String keyName, int valueIndex)
Returns at the specified index the value from the collection mapped by the specified
keyName.
| ||||||||||
abstract int |
getValueCount(String keyName)
Returns the number of values from the collection mapped by the specified keyName.
| ||||||||||
abstract Object |
getValueObject(String key, int index)
Returns at the specified index the value from the collection mapped by the specified
key.
| ||||||||||
abstract Enumeration |
getValueObject(String key)
Returns from this collection a list of all the
objects mapped by the specified
key . | ||||||||||
abstract boolean |
isEmpty()
Returns a boolean value indicating whether the current collection is empty
| ||||||||||
abstract void |
remove(String key)
Removes the argument with the given key.
| ||||||||||
abstract void |
setValue(String key, String value, int index)
Replaces the value at a specific index for a given key.
| ||||||||||
abstract void |
setValueObject(String key, Object value, int index)
Replaces the Object at a specific index for a given key.
|
Adds a key/value pair to this collection. If the supplied key already exists in the collection, the supplied value is added to the collection. It does overwrite or replace the existing value.
key | the key under which the new value will be added |
---|---|
value | the value to be appended |
Adds a key/value pair to this collection. If the supplied key already exists in the collection, the supplied value object is added to the collection. It does overwrite or replace the existing value.
key | the key under which the new value will be added |
---|---|
value | the Object to be appended |
Get the Debug Information into the output
MarkupOutput
.Parses the value of given request key to an integer.
key | The request key name |
---|---|
index | an index of the value to return (must be between 0
and getValueCount(name)-1 . |
Parses the value of given request key to an integer.
defaultValue | The default value. |
---|
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. |
---|
Returns the name at the specified index from the current collection.
nameIndex | the index of the name |
---|
Returns the number of names stored in the current collection.
Determines where a given request key was sourced 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 at the specified index the value from the collection mapped by the specified keyName.
keyName | a name associated to a collection of values. |
---|---|
valueIndex | an index of the value to return (must be between 0
and getValueCount(name)-1 . |
Returns the number of values from the collection mapped by the specified keyName.
keyName | a name associated with a collection of values |
---|
Returns at the specified index the value from the collection mapped by the specified key.
key | a name associated to a collection of values. |
---|---|
index | an index of the Object to return (must be between 0
and getValueCount(name)-1 . |
Returns from this collection a list of all the
objects mapped by the specified key
.
key | a key in this collection |
---|
Returns a boolean value indicating whether the current collection is empty
Removes the argument with the given key.
key | the key of the argument to remove. |
---|
Replaces the value at a specific index for a given key. As any
key may have several values, this method replaces a specific value.
Nothing happens if the index
is out of bounds.
key | the new key whose correponding value to be added |
---|---|
value | the new value to be added |
index | the position to add the key-value pair. |
Replaces the Object at a specific index for a given key. As any
key may have several objects, this method replaces a specific Object.
Nothing happens if the index
is out of bounds.
key | the new key whose correponding value to be added |
---|---|
value | the new Object to be added |
index | the position to add the key-value pair. |