java.lang.Object | ||
↳ | com.microstrategy.web.beans.GenericRequestKeys | |
↳ | com.microstrategy.web.app.beans.CaseInsensitiveRequestKeys |
![]() |
The CaseInsensitiveRequestKeys abstract class makes available the
architecture required for being able to handle request keys as case
insensitive. 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).
Any child of this class should call
the getKeyToSearch(String)
and
updateKeyMapping(String)
whenever requests with keys
are directly called. These methods take care of mapping the user-given key to
the one actually used for storing the values.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CaseInsensitiveRequestKeys()
Class constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Enumeration |
getKeyListByPrefix(String prefix)
Returns an enumeration over all the keys with the specified prefix.
| ||||||||||
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.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getKeyToSearch(String originalKey)
Get which key to search, for supporting case insensitive scenarios.
| ||||||||||
void |
updateKeyMapping(String originalKey)
Keep the key mapping list updated by calling this method with the
key name requested by the user.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Class constructor.
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 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 |
---|
Get which key to search, for supporting case insensitive scenarios.
originalKey | the original key requested by the user |
---|
String
value with the key with the correct casing
that should be used for accessing the stored request values.
Keep the key mapping list updated by calling this method with the key name requested by the user. If the key has already been mapped calling this method has no effect (it should still be done for security).
originalKey | String with the key used for storing
or retrieving values.
|
---|