public abstract class AbstractPluginContext extends java.lang.Object implements PluginContext
Modifier and Type | Field and Description |
---|---|
protected AMSession |
amSession |
protected java.lang.String |
clientIPAddress |
protected ClientProfile |
clientProfile |
protected java.util.List<java.lang.Exception> |
exceptionList |
protected java.util.Map<java.lang.String,java.lang.Object> |
objectMap |
protected java.util.List<PluginResponse> |
pluginResponses |
protected java.util.Map<java.lang.String,java.lang.String> |
stringMap |
protected GenericTransportContext |
transportContext |
KEY_TAG
Constructor and Description |
---|
AbstractPluginContext() |
Modifier and Type | Method and Description |
---|---|
void |
addErrorCode(ErrorCode errorCode)
Adds an error code to the list of errors.
|
void |
addException(java.lang.Exception exception)
Adds an exception to the list.
|
void |
addResponse(PluginResponse response)
Add a response to the context.
|
java.util.List<PluginResponse> |
getAllResponses()
returns all the responses configured.
|
java.lang.String |
getClientIPAddress()
gets the client IP address.
|
ClientProfile |
getClientProfile()
returns the
ClientProfile object that contains
the client specific attributes. |
ErrorCode |
getErrorCode()
returns the error code for the last error that occured during the
execution.
|
java.util.List<java.lang.Exception> |
getExceptionList()
Returns the list of exceptions encountered during the processing.
|
IdentityStoreContext |
getIdentityStoreContext()
returns the identity store context.
|
java.lang.Object |
getObjectAttribute(java.lang.String atrName)
This method returns the object attribute specified by the attribute name
parameter.
|
java.util.Map<java.lang.String,java.lang.Object> |
getObjectMap()
Returns the Object attribute map.
|
PluginResponse |
getResponse(PluginAttributeContextType type,
java.lang.String name)
returns the attributes for the target context and the name.
|
java.util.List<PluginResponse> |
getResponses(PluginAttributeContextType type)
returns all the attributes for the target context.
|
AMSession |
getSession()
returns the OAM session object.
|
java.lang.String |
getStringAttribute(java.lang.String atrName)
This method gives the String attribute specified by the attribute name
parameter.
|
java.util.Map<java.lang.String,java.lang.String> |
getStringMap()
Retuns the string attribute map.
|
GenericTransportContext |
getTransportContext()
Transport context encapsulate the transport related handling in the
request object.
|
void |
removeResponse(PluginAttributeContextType type)
Removes the response of the specified type
|
void |
removeResponse(PluginAttributeContextType type,
java.lang.String name)
Removes the response of the specified type and name
|
void |
setObjectAttribute(java.lang.String attrName,
java.lang.Object attrValue)
This method sets a Object attribute specified by the attribute name
parameter and value.
|
void |
setStringAttribute(java.lang.String attrName,
java.lang.String attrValue)
This method sets a String attribute specified by the attribute name
parameter and value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteStateAttribute, getAction, getAllStateAttributes, getImplType, getStartingStep, getStateAttribute, setAction, setStartingStep, setStateAttribute
fromString, getKeyName, getObjName, setKeyName, toStringForm
protected java.util.Map<java.lang.String,java.lang.String> stringMap
protected java.util.Map<java.lang.String,java.lang.Object> objectMap
protected java.util.List<java.lang.Exception> exceptionList
protected java.util.List<PluginResponse> pluginResponses
protected ClientProfile clientProfile
protected GenericTransportContext transportContext
protected AMSession amSession
protected java.lang.String clientIPAddress
public void addErrorCode(ErrorCode errorCode)
PluginContext
addErrorCode
in interface PluginContext
errorCode
- the error codepublic void addException(java.lang.Exception exception)
PluginContext
addException
in interface PluginContext
exception
- the exceptionpublic void addResponse(PluginResponse response)
PluginContext
addResponse
in interface PluginContext
response
- PluginResponse
objectpublic java.util.List<PluginResponse> getAllResponses()
PluginContext
getAllResponses
in interface PluginContext
PluginResponse
objectpublic ErrorCode getErrorCode()
PluginContext
getErrorCode
in interface PluginContext
public java.util.List<java.lang.Exception> getExceptionList()
PluginContext
getExceptionList
in interface PluginContext
public java.lang.String getClientIPAddress()
PluginContext
getClientIPAddress
in interface PluginContext
public ClientProfile getClientProfile()
PluginContext
ClientProfile
object that contains
the client specific attributes.getClientProfile
in interface PluginContext
public IdentityStoreContext getIdentityStoreContext()
PluginContext
getIdentityStoreContext
in interface PluginContext
public java.lang.Object getObjectAttribute(java.lang.String atrName)
PluginContext
getObjectAttribute
in interface PluginContext
atrName
- String
attribute name value.public java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
PluginContext
getObjectMap
in interface PluginContext
public java.lang.String getStringAttribute(java.lang.String atrName)
PluginContext
getStringAttribute
in interface PluginContext
atrName
- String
attribute name value.public java.util.Map<java.lang.String,java.lang.String> getStringMap()
PluginContext
getStringMap
in interface PluginContext
public void setObjectAttribute(java.lang.String attrName, java.lang.Object attrValue)
PluginContext
setObjectAttribute
in interface PluginContext
attrName
- the attr nameattrValue
- the attr valuepublic void setStringAttribute(java.lang.String attrName, java.lang.String attrValue)
PluginContext
setStringAttribute
in interface PluginContext
attrName
- the attr nameattrValue
- the attr valuepublic AMSession getSession()
PluginContext
getSession
in interface PluginContext
OAMSession
object.public GenericTransportContext getTransportContext()
PluginContext
getTransportContext
in interface PluginContext
public java.util.List<PluginResponse> getResponses(PluginAttributeContextType type)
PluginContext
getResponses
in interface PluginContext
List
public PluginResponse getResponse(PluginAttributeContextType type, java.lang.String name)
PluginContext
getResponse
in interface PluginContext
PluginResponse
public void removeResponse(PluginAttributeContextType type)
PluginContext
removeResponse
in interface PluginContext
public void removeResponse(PluginAttributeContextType type, java.lang.String name)
PluginContext
removeResponse
in interface PluginContext