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(String
name,Serializable
value)
Adds an attribute with the given name and value.
Note that value must be serializable for transportability.
public void clear()
Clears all attributes.
publicSerializable
getParameter(String
name)
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.