Class FFDCResponseBase
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
-
- All Implemented Interfaces:
Serializable,FFDCResponse
- Direct Known Subclasses:
BooleanResponse,ConnectionResponse,ConnectorTypeResponse,CountResponse,GUIDListResponse,GUIDResponse,NameListResponse,PropertiesResponse,RegisteredOMAGServicesResponse,StringMapResponse,StringResponse,VoidResponse
public class FFDCResponseBase extends Object implements Serializable, FFDCResponse
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FFDCResponseBase()Default constructorFFDCResponseBase(FFDCResponseBase template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.StringgetActionDescription()Return the description of the action in progress when the exception occurred.StringgetExceptionCausedBy()Return the name of any nested exception that may indicate the root cause of the exception.StringgetExceptionClassName()Return the name of the Java class name to use to recreate the exception.StringgetExceptionErrorMessage()Return the error message associated with the exception.StringgetExceptionErrorMessageId()Return the formal message identifier for the error message.String[]getExceptionErrorMessageParameters()Return the parameters that were inserted in the error message.Map<String,Object>getExceptionProperties()Return the additional properties stored by the exceptions.StringgetExceptionSystemAction()Return the description of the action taken by the system as a result of the exception.StringgetExceptionUserAction()Return the action that a user should take to resolve the problem.intgetRelatedHTTPCode()Return the HTTP Code to use if forwarding response to HTTP client.inthashCode()Return hash code for this objectvoidsetActionDescription(String actionDescription)Set up the description of the activity in progress when the exception occurred.voidsetExceptionCausedBy(String exceptionCausedBy)Set up the name of any nested exception that may indicate the root cause of the exception.voidsetExceptionClassName(String exceptionClassName)Set up the name of the Java class name to use to recreate the exception.voidsetExceptionErrorMessage(String exceptionErrorMessage)Set up the error message associated with the exception.voidsetExceptionErrorMessageId(String exceptionErrorMessageId)Set up the formal message identifier for the error message.voidsetExceptionErrorMessageParameters(String[] exceptionErrorMessageParameters)Set up the list of parameters inserted in to the error message.voidsetExceptionProperties(Map<String,Object> exceptionProperties)Set up the additional properties stored by the exceptions.voidsetExceptionSystemAction(String exceptionSystemAction)Set up the description of the action taken by the system as a result of the exception.voidsetExceptionUserAction(String exceptionUserAction)Set up the action that a user should take to resolve the problem.voidsetRelatedHTTPCode(int relatedHTTPCode)Set up the HTTP Code to use if forwarding response to HTTP client.StringtoString()JSON-like toString
-
-
-
Constructor Detail
-
FFDCResponseBase
public FFDCResponseBase()
Default constructor
-
FFDCResponseBase
public FFDCResponseBase(FFDCResponseBase template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getExceptionClassName
public String getExceptionClassName()
Description copied from interface:FFDCResponseReturn the name of the Java class name to use to recreate the exception.- Specified by:
getExceptionClassNamein interfaceFFDCResponse- Returns:
- String name of the fully-qualified java class name
-
setExceptionClassName
public void setExceptionClassName(String exceptionClassName)
Description copied from interface:FFDCResponseSet up the name of the Java class name to use to recreate the exception.- Specified by:
setExceptionClassNamein interfaceFFDCResponse- Parameters:
exceptionClassName- - String name of the fully-qualified java class name
-
getExceptionCausedBy
public String getExceptionCausedBy()
Description copied from interface:FFDCResponseReturn the name of any nested exception that may indicate the root cause of the exception.- Specified by:
getExceptionCausedByin interfaceFFDCResponse- Returns:
- exception class name
-
setExceptionCausedBy
public void setExceptionCausedBy(String exceptionCausedBy)
Description copied from interface:FFDCResponseSet up the name of any nested exception that may indicate the root cause of the exception.- Specified by:
setExceptionCausedByin interfaceFFDCResponse- Parameters:
exceptionCausedBy- exception class name
-
getActionDescription
public String getActionDescription()
Description copied from interface:FFDCResponseReturn the description of the action in progress when the exception occurred.- Specified by:
getActionDescriptionin interfaceFFDCResponse- Returns:
- string description
-
setActionDescription
public void setActionDescription(String actionDescription)
Description copied from interface:FFDCResponseSet up the description of the activity in progress when the exception occurred.- Specified by:
setActionDescriptionin interfaceFFDCResponse- Parameters:
actionDescription- string description
-
getRelatedHTTPCode
public int getRelatedHTTPCode()
Description copied from interface:FFDCResponseReturn the HTTP Code to use if forwarding response to HTTP client.- Specified by:
getRelatedHTTPCodein interfaceFFDCResponse- Returns:
- integer HTTP status code
-
setRelatedHTTPCode
public void setRelatedHTTPCode(int relatedHTTPCode)
Description copied from interface:FFDCResponseSet up the HTTP Code to use if forwarding response to HTTP client.- Specified by:
setRelatedHTTPCodein interfaceFFDCResponse- Parameters:
relatedHTTPCode- - integer HTTP status code
-
getExceptionErrorMessage
public String getExceptionErrorMessage()
Description copied from interface:FFDCResponseReturn the error message associated with the exception.- Specified by:
getExceptionErrorMessagein interfaceFFDCResponse- Returns:
- string error message
-
setExceptionErrorMessage
public void setExceptionErrorMessage(String exceptionErrorMessage)
Description copied from interface:FFDCResponseSet up the error message associated with the exception.- Specified by:
setExceptionErrorMessagein interfaceFFDCResponse- Parameters:
exceptionErrorMessage- - string error message
-
getExceptionErrorMessageId
public String getExceptionErrorMessageId()
Description copied from interface:FFDCResponseReturn the formal message identifier for the error message. This is incorporated in the error message. This is provided both for automated processing and to enable the error message to be reformatted in a different language.- Specified by:
getExceptionErrorMessageIdin interfaceFFDCResponse- Returns:
- string identifier
-
setExceptionErrorMessageId
public void setExceptionErrorMessageId(String exceptionErrorMessageId)
Description copied from interface:FFDCResponseSet up the formal message identifier for the error message. This is incorporated in the error message. This is provided both for automated processing and to enable the error message to be reformatted in a different language.- Specified by:
setExceptionErrorMessageIdin interfaceFFDCResponse- Parameters:
exceptionErrorMessageId- string identifier
-
getExceptionErrorMessageParameters
public String[] getExceptionErrorMessageParameters()
Description copied from interface:FFDCResponseReturn the parameters that were inserted in the error message. These are provided both for automated processing and to enable the error message to be reformatted in a different language.- Specified by:
getExceptionErrorMessageParametersin interfaceFFDCResponse- Returns:
- list of strings
-
setExceptionErrorMessageParameters
public void setExceptionErrorMessageParameters(String[] exceptionErrorMessageParameters)
Description copied from interface:FFDCResponseSet up the list of parameters inserted in to the error message. These are provided both for automated processing and to enable the error message to be reformatted in a different language.- Specified by:
setExceptionErrorMessageParametersin interfaceFFDCResponse- Parameters:
exceptionErrorMessageParameters- list of strings
-
getExceptionSystemAction
public String getExceptionSystemAction()
Description copied from interface:FFDCResponseReturn the description of the action taken by the system as a result of the exception.- Specified by:
getExceptionSystemActionin interfaceFFDCResponse- Returns:
- - string description of the action taken
-
setExceptionSystemAction
public void setExceptionSystemAction(String exceptionSystemAction)
Description copied from interface:FFDCResponseSet up the description of the action taken by the system as a result of the exception.- Specified by:
setExceptionSystemActionin interfaceFFDCResponse- Parameters:
exceptionSystemAction- - string description of the action taken
-
getExceptionUserAction
public String getExceptionUserAction()
Description copied from interface:FFDCResponseReturn the action that a user should take to resolve the problem.- Specified by:
getExceptionUserActionin interfaceFFDCResponse- Returns:
- string instructions
-
setExceptionUserAction
public void setExceptionUserAction(String exceptionUserAction)
Description copied from interface:FFDCResponseSet up the action that a user should take to resolve the problem.- Specified by:
setExceptionUserActionin interfaceFFDCResponse- Parameters:
exceptionUserAction- - string instructions
-
getExceptionProperties
public Map<String,Object> getExceptionProperties()
Description copied from interface:FFDCResponseReturn the additional properties stored by the exceptions.- Specified by:
getExceptionPropertiesin interfaceFFDCResponse- Returns:
- property map
-
setExceptionProperties
public void setExceptionProperties(Map<String,Object> exceptionProperties)
Description copied from interface:FFDCResponseSet up the additional properties stored by the exceptions.- Specified by:
setExceptionPropertiesin interfaceFFDCResponse- Parameters:
exceptionProperties- property map
-
toString
public String toString()
JSON-like toString
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.
-
-