# com.bea.wsrp.ext.holders
SimpleStateHolder Class

public class SimpleStateHolder
extends `Object`
implements `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.

Hierarchy
  `Object`
  `SimpleStateHolder`

All Implemented Interfaces
  `InteractionRequestState`, `InteractionResponseState`, `MarkupRequestState`, `MarkupResponseState`, `Serializable`

## Constructor Summary

SimpleStateHolder() Creates an instance.

## Method Summary

`public void` | `addParameter`(`String` name, `Serializable` value) Adds an attribute with the given name and value.
`public void` | `clear`() Clears all attributes.
`public `Serializable`` | `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.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### SimpleStateHolder

    public SimpleStateHolder()

  Creates an instance.

## Method Detail

### addParameter(String, Serializable) Method

    public void addParameter(String name,
                             Serializable value)

Adds an attribute with the given name and value.

Note that value must be serializable for transportability.

### clear() Method

    public void clear()

Clears all attributes.

### getParameter(String) Method

    public Serializable getParameter(String name)

Returns the value of an attribute given its name.

#### Returns

value

### namesIterator() Method

    public Iterator namesIterator()

Returns an iterator of names of attributes.

#### Returns

iterator of names

### valuesIterator() Method

    public Iterator valuesIterator()

Returns an iterator of values of attributes.

#### Returns

iterator of values