|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.wsrp.ext.holders.SimpleStateHolder
public class SimpleStateHolder
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.
| Field Summary |
|---|
| Fields inherited from interface com.bea.wsrp.ext.holders.InteractionRequestState |
|---|
KEY |
| Fields inherited from interface com.bea.wsrp.ext.holders.InteractionResponseState |
|---|
KEY |
| Fields inherited from interface com.bea.wsrp.ext.holders.MarkupRequestState |
|---|
KEY |
| Fields inherited from interface com.bea.wsrp.ext.holders.MarkupResponseState |
|---|
KEY |
| Constructor Summary | |
|---|---|
SimpleStateHolder()
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
addParameter(String name,
Serializable value)
Adds an attribute with the given name and value. |
void |
clear()
Clears all attributes. |
Serializable |
getParameter(String name)
Returns the value of an attribute given its name. |
Iterator |
namesIterator()
Returns an iterator of names of attributes. |
Iterator |
valuesIterator()
Returns an iterator of values of attributes. |
| Methods inherited from class java.lang.Object |
|---|
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.
name - value - public Serializable getParameter(String name)
Returns the value of an attribute given its name.
name -
public Iterator namesIterator()
Returns an iterator of names of attributes.
public Iterator valuesIterator()
Returns an iterator of values of attributes.
public void clear()
Clears all attributes.
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||