public class PluginResponse extends java.lang.Object implements PluginAttribute
addResponse(PluginResponse response); method
and the executor will extract the responses and set that to the
respective contexts.
Available attribute contexts are
PluginAttributeContextType.REQUEST to the request context.
PluginAttributeContextType.SESSION to OAM session object
PluginAttributeContextType.REDIRECT as redirect URL used after the process.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
The name.
|
protected static java.lang.String |
NAME_TAG |
protected static java.lang.String |
OBJ_ID |
protected PluginAttributeContextType |
type
The type.
|
protected static java.lang.String |
TYPE_TAG |
protected java.lang.Object |
value
The value.
|
protected static java.lang.String |
VALUE_TAG |
KEY_TAG| Constructor and Description |
|---|
PluginResponse()
Default Constructor
|
PluginResponse(java.lang.String name,
java.lang.String value,
PluginAttributeContextType contextType)
constructor to create the plug-in response
that can be set to session request etc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(java.lang.String token) |
java.lang.String |
getKeyName() |
java.lang.String |
getName()
returns the name of the response attribute.
|
java.lang.String |
getObjName() |
PluginAttributeContextType |
getType()
get the attribute context type.
|
java.lang.Object |
getValue()
Get the attribute value.
|
void |
setKeyName(java.lang.String keyName) |
void |
setName(java.lang.String name)
sets the name of the response attribute.
|
void |
setType(PluginAttributeContextType type)
sets the attribute context type.
|
void |
setValue(java.lang.Object value)
sets the attribute value.
|
java.lang.String |
toStringForm() |
protected PluginAttributeContextType type
protected java.lang.String name
protected java.lang.Object value
protected static final java.lang.String OBJ_ID
protected static java.lang.String NAME_TAG
protected static java.lang.String VALUE_TAG
protected static java.lang.String TYPE_TAG
public PluginResponse(java.lang.String name,
java.lang.String value,
PluginAttributeContextType contextType)
name - the namevalue - the valuecontextType - the context typepublic PluginResponse()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic PluginAttributeContextType getType()
public void setType(PluginAttributeContextType type)
type - the new typepublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the new valuepublic java.lang.String toStringForm()
toStringForm in interface PluginAttributepublic void fromString(java.lang.String token)
fromString in interface PluginAttributepublic java.lang.String getKeyName()
getKeyName in interface PluginAttributepublic void setKeyName(java.lang.String keyName)
setKeyName in interface PluginAttributepublic java.lang.String getObjName()
getObjName in interface PluginAttribute