|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.server.processor.AttributesMulti
public class AttributesMulti
A collection of NMVPairs. Duplicate names are not allowed.
Description:
A collection of NMVPairs. Duplicate names are not allowed. They will be
stored as a list under the key. Attributes can be encoded as a URLEncoded
string.
Concurrency issues:
-
| Constructor Summary | |
|---|---|
AttributesMulti()
Create an empty AttributesMulti Description: Initializes the attributes. Concurrency issues: - Preconditions: - Postconditions: - |
|
AttributesMulti(java.util.Hashtable htAttributes)
Create a AttributesMulti object from a Hashtable (containing
Strings and Vectors). |
|
AttributesMulti(java.lang.String urlEncoded)
Create a new AttributesMulti, based on a URL encoded name/value
string. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
Add a new name, value pair to the list of attributes. |
void |
addAttributes(java.lang.String name,
java.util.Vector values)
Add a new NVPair to the list of attributes. |
java.lang.String |
getAttribute(java.lang.String name)
Get the attribute by name (will only return the first one if it is a multivalued attribute.) Concurrency issues: - Preconditions: - Postconditions: - |
java.util.List |
getAttributes(java.lang.String name)
Get a list of attributes corresponding to the name. |
void |
remove(java.lang.String key)
Remove attribute from the list. |
java.lang.String |
toEncodedString()
URLEncode the attributes. |
java.util.Hashtable |
toHashtable()
Create a hashtable (mixed with Vectors and String) based on this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributesMulti()
AttributesMulti
public AttributesMulti(java.lang.String urlEncoded)
throws ASelectException
AttributesMulti, based on a URL encoded name/value
string.
urlEncoded - URL encoded string with attributes
ASelectException - if creation failspublic AttributesMulti(java.util.Hashtable htAttributes)
AttributesMulti object from a Hashtable (containing
Strings and Vectors).
htAttributes - A Hashtable to create the object from.| Method Detail |
|---|
public void addAttribute(java.lang.String name,
java.lang.String value)
name - The name of the pairvalue - The value of the pair.
public void addAttributes(java.lang.String name,
java.util.Vector values)
name - The name of the attributevalues - The values to add to the attribute.public java.lang.String getAttribute(java.lang.String name)
name - The name of the attribute to retrieve.
public java.util.List getAttributes(java.lang.String name)
name - The name of the attribute to retrieve.
public void remove(java.lang.String key)
key - The attribute to remove.public java.util.Hashtable toHashtable()
public java.lang.String toEncodedString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||