Object
InteractionRequestState, InteractionResponseState, MarkupRequestState, MarkupResponseState
A convenience implementation to transport custom state between a Producer and Consumer.
You can use this implementation to represent custom state as named serializable objects.
Object
SimpleStateHolder
InteractionRequestState, InteractionResponseState, MarkupRequestState, MarkupResponseState, Serializable
Constructor Summary |
|
Method Summary |
public void |
|
public void |
|
public |
|
public |
|
public |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleStateHolder()
Creates an instance.
Method Detail |
public void addParameter(Stringname,Serializablevalue)
Adds an attribute with the given name and value.
Note that value must be serializable for transportability.
public void clear()
Clears all attributes.
publicSerializablegetParameter(Stringname)
Returns the value of an attribute given its name.
public Iterator namesIterator()
Returns an iterator of names of attributes.
public Iterator valuesIterator()
Returns an iterator of values of attributes.