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, waitdeleteStateAttribute, getAction, getAllStateAttributes, getImplType, getStartingStep, getStateAttribute, setAction, setStartingStep, setStateAttributefromString, getKeyName, getObjName, setKeyName, toStringFormprotected 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)
PluginContextaddErrorCode in interface PluginContexterrorCode - the error codepublic void addException(java.lang.Exception exception)
PluginContextaddException in interface PluginContextexception - the exceptionpublic void addResponse(PluginResponse response)
PluginContextaddResponse in interface PluginContextresponse - PluginResponse objectpublic java.util.List<PluginResponse> getAllResponses()
PluginContextgetAllResponses in interface PluginContextPluginResponse objectpublic ErrorCode getErrorCode()
PluginContextgetErrorCode in interface PluginContextpublic java.util.List<java.lang.Exception> getExceptionList()
PluginContextgetExceptionList in interface PluginContextpublic java.lang.String getClientIPAddress()
PluginContextgetClientIPAddress in interface PluginContextpublic ClientProfile getClientProfile()
PluginContextClientProfile object that contains
the client specific attributes.getClientProfile in interface PluginContextpublic IdentityStoreContext getIdentityStoreContext()
PluginContextgetIdentityStoreContext in interface PluginContextpublic java.lang.Object getObjectAttribute(java.lang.String atrName)
PluginContextgetObjectAttribute in interface PluginContextatrName - String attribute name value.public java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
PluginContextgetObjectMap in interface PluginContextpublic java.lang.String getStringAttribute(java.lang.String atrName)
PluginContextgetStringAttribute in interface PluginContextatrName - String attribute name value.public java.util.Map<java.lang.String,java.lang.String> getStringMap()
PluginContextgetStringMap in interface PluginContextpublic void setObjectAttribute(java.lang.String attrName,
java.lang.Object attrValue)
PluginContextsetObjectAttribute in interface PluginContextattrName - the attr nameattrValue - the attr valuepublic void setStringAttribute(java.lang.String attrName,
java.lang.String attrValue)
PluginContextsetStringAttribute in interface PluginContextattrName - the attr nameattrValue - the attr valuepublic AMSession getSession()
PluginContextgetSession in interface PluginContextOAMSession object.public GenericTransportContext getTransportContext()
PluginContextgetTransportContext in interface PluginContextpublic java.util.List<PluginResponse> getResponses(PluginAttributeContextType type)
PluginContextgetResponses in interface PluginContextListpublic PluginResponse getResponse(PluginAttributeContextType type, java.lang.String name)
PluginContextgetResponse in interface PluginContextPluginResponsepublic void removeResponse(PluginAttributeContextType type)
PluginContextremoveResponse in interface PluginContextpublic void removeResponse(PluginAttributeContextType type, java.lang.String name)
PluginContextremoveResponse in interface PluginContext