Package com.microstrategy.web.platform
Interface ContainerStringCollection
-
- All Known Implementing Classes:
AbstractConfigurableContainerServices.AbstractContainerStringCollection
public interface ContainerStringCollectionThis is a generic collection of string data which came from a Web Container. It may house a set of Query String parameters, Form Data, Cookies, Session Variables, etc.- Since:
- MicroStrategy Web 7.3.1 or earlier
- See Also:
ContainerServices
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName(int index)This returns a name at a specific numeric index in this collection.intgetNameCount()This returns the number of unique names (keys) in this collection.SourcegetSource()java.lang.StringgetStringValue(java.lang.String name)This returns a the first string value associated with a given name (key) in this collection.java.lang.StringgetStringValue(java.lang.String name, int index)This returns a specific string value associated with a given name (key) in this collection.intgetStringValueCount(java.lang.String name)This returns the number of string values associated with a given name (key) in this collection.java.lang.ObjectgetValue(java.lang.String name)This returns a value associated with a given name (key) in this collection.
-
-
-
Method Detail
-
getNameCount
int getNameCount()
This returns the number of unique names (keys) in this collection.- Returns:
- An
intrepresenting the count of unique names.
-
getName
java.lang.String getName(int index)
This returns a name at a specific numeric index in this collection.- Parameters:
index- Anintrepresenting the index of the name to return.- Returns:
- The
Stringrepresenting the name at this index.
-
getStringValueCount
int getStringValueCount(java.lang.String name)
This returns the number of string values associated with a given name (key) in this collection. For most collections (such as the Query String collection, the Form Data collection and the Cookie collection), all values are represented as strings. However, for the Session collection, many of the values are not Strings and do not contribute to this count.- Parameters:
name- AStringrepresenting the name of the key in this collection.- Returns:
- An
intrepresenting the count of values.
-
getStringValue
java.lang.String getStringValue(java.lang.String name)
This returns a the first string value associated with a given name (key) in this collection.- Parameters:
name- AStringrepresenting the name of the key in this collection.- Returns:
- A
Stringrepresenting the value of the first string.
-
getStringValue
java.lang.String getStringValue(java.lang.String name, int index)This returns a specific string value associated with a given name (key) in this collection. Valid indices range from 0 to 1 less than the value returned bygetStringValueCount(java.lang.String).- Parameters:
name- AStringrepresenting the name of the key in this collection.index- Anintrepresenting the specific value to retrieve.- Returns:
- A
Stringrepresenting the value at that index.
-
getValue
java.lang.Object getValue(java.lang.String name)
This returns a value associated with a given name (key) in this collection.- Parameters:
name- AStringrepresenting the name of the key in this collection.- Returns:
- A Object representing the value for the given name.
-
-