Class FFDCResponseBase
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
- All Implemented Interfaces:
FFDCResponse
- Direct Known Subclasses:
AccessServicesResponse,AdminServicesAPIResponse,AssetCatalogSupportedTypes,BooleanResponse,CertificationElementsResponse,ConnectionListResponse,ConnectorReportResponse,ElementHeaderResponse,ElementHeadersResponse,EngineHostServicesResponse,GlossaryTermActivityTypeListResponse,GlossaryTermRelationshipStatusListResponse,GlossaryTermStatusListResponse,GovernanceEngineSummariesResponse,GovernanceEngineSummaryResponse,GUIDListResponse,GUIDResponse,IntegrationDaemonServicesResponse,IntegrationDaemonStatusResponse,IntegrationGroupsResponse,IntegrationGroupSummariesResponse,IntegrationGroupSummaryResponse,IntegrationReportResponse,IntegrationReportsResponse,MetadataElementSummariesResponse,MetadataElementSummaryResponse,MetadataRelationshipSummariesResponse,NameListResponse,OCFConnectionResponse,OCFConnectorTypeResponse,OMAGGAFAPIResponse,OMAGOMFAPIResponse,OMAGServerStatusResponse,OpenMetadataGraphResponse,OpenMetadataRootElementResponse,OpenMetadataRootElementsResponse,PlatformReportResponse,PropertiesResponse,RegisteredOMAGServiceResponse,RegisteredOMAGServicesResponse,RelatedMetadataElementSummariesResponse,ServerListResponse,ServerReportResponse,ServerServicesListResponse,ServerStatusResponse,StringMapResponse,StringResponse,SuccessMessageResponse,TechnologyTypeHierarchyResponse,TechnologyTypeReportResponse,TechnologyTypeSummaryListResponse,ValidMetadataValueListResponse,ValidMetadataValueResponse,ViewServicesResponse,VoidResponse
FFDCResponseBase provides the base class for REST API responses.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorFFDCResponseBase(FFDCResponseBase template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the description of the action in progress when the exception occurred.Return the name of any nested exception that may indicate the root cause of the exception.Return the name of the Java class name to use to recreate the exception.Return the error message associated with the exception.Return the formal message identifier for the error message.String[]Return the parameters that were inserted in the error message.Return the additional properties stored by the exceptions.Return the description of the action taken by the system as a result of the exception.Return the action that a user should take to resolve the problem.intReturn 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.toString()JSON-like toString
-
Constructor Details
-
FFDCResponseBase
public FFDCResponseBase()Default constructor -
FFDCResponseBase
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getExceptionClassName
Return 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
Set 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
Return the name of any nested exception that may indicate the root cause of the exception.- Specified by:
getExceptionCausedByin interfaceFFDCResponse- Returns:
- exception class name
-
setExceptionCausedBy
Set 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
Return the description of the action in progress when the exception occurred.- Specified by:
getActionDescriptionin interfaceFFDCResponse- Returns:
- string description
-
setActionDescription
Set up the description of the activity in progress when the exception occurred.- Specified by:
setActionDescriptionin interfaceFFDCResponse- Parameters:
actionDescription- string description
-
getRelatedHTTPCode
public int getRelatedHTTPCode()Return 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) Set up the HTTP Code to use if forwarding response to HTTP client.- Specified by:
setRelatedHTTPCodein interfaceFFDCResponse- Parameters:
relatedHTTPCode- - integer HTTP status code
-
getExceptionErrorMessage
Return the error message associated with the exception.- Specified by:
getExceptionErrorMessagein interfaceFFDCResponse- Returns:
- string error message
-
setExceptionErrorMessage
Set up the error message associated with the exception.- Specified by:
setExceptionErrorMessagein interfaceFFDCResponse- Parameters:
exceptionErrorMessage- - string error message
-
getExceptionErrorMessageId
Return 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
Set 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
Return 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:
- array of strings
-
setExceptionErrorMessageParameters
Set 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
Return 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
Set 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
Return the action that a user should take to resolve the problem.- Specified by:
getExceptionUserActionin interfaceFFDCResponse- Returns:
- string instructions
-
setExceptionUserAction
Set up the action that a user should take to resolve the problem.- Specified by:
setExceptionUserActionin interfaceFFDCResponse- Parameters:
exceptionUserAction- - string instructions
-
getExceptionProperties
Return the additional properties stored by the exceptions.- Specified by:
getExceptionPropertiesin interfaceFFDCResponse- Returns:
- property map
-
setExceptionProperties
Set up the additional properties stored by the exceptions.- Specified by:
setExceptionPropertiesin interfaceFFDCResponse- Parameters:
exceptionProperties- property map
-
toString
JSON-like toString -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-