Class ConformanceServicesAPIResponse
java.lang.Object
org.odpi.openmetadata.conformance.rest.ConformanceServicesAPIResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProfileNameListResponse
,ProfileReportResponse
,TestCaseListReportResponse
,TestCaseListResponse
,TestCaseReportResponse
,TestLabReportResponse
,TestLabSummaryResponse
,VoidResponse
,WorkbenchReportResponse
,WorkbenchStatusResponse
ConformanceServicesAPIResponse provides a common header for admin services managed response to its REST API.
It manages information about exceptions. If no exception has been raised exceptionClassName is null.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the name of the Java class name to use to recreate the exception.Return the error message associated with the exception.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.int
Return the HTTP Code to use if forwarding response to HTTP client.Return the success message (if any).int
hashCode()
Return hash code for this objectvoid
setExceptionClassName
(String exceptionClassName) Set up the name of the Java class name to use to recreate the exception.void
setExceptionErrorMessage
(String exceptionErrorMessage) Set up the error message associated with the exception.void
setExceptionProperties
(Map<String, Object> exceptionProperties) Set up the additional properties stored by the exceptions.void
setExceptionSystemAction
(String exceptionSystemAction) Set up the description of the action taken by the system as a result of the exception.void
setExceptionUserAction
(String exceptionUserAction) Set up the action that a user should take to resolve the problem.void
setRelatedHTTPCode
(int relatedHTTPCode) Set up the HTTP Code to use if forwarding response to HTTP client.void
setSuccessMessage
(String successMessage) Set up the success message.toString()
JSON-like toString
-
Constructor Details
-
ConformanceServicesAPIResponse
public ConformanceServicesAPIResponse()Default constructor -
ConformanceServicesAPIResponse
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getRelatedHTTPCode
public int getRelatedHTTPCode()Return the HTTP Code to use if forwarding response to HTTP client.- Returns:
- integer HTTP status code
-
setRelatedHTTPCode
public void setRelatedHTTPCode(int relatedHTTPCode) Set up the HTTP Code to use if forwarding response to HTTP client.- Parameters:
relatedHTTPCode
- - integer HTTP status code
-
getSuccessMessage
Return the success message (if any).- Returns:
- string or null
-
setSuccessMessage
Set up the success message. This provides supplementary information about the services that have been changed.- Parameters:
successMessage
- string or null
-
getExceptionClassName
Return the name of the Java class name to use to recreate the exception.- 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.- Parameters:
exceptionClassName
- - String name of the fully-qualified java class name
-
getExceptionErrorMessage
Return the error message associated with the exception.- Returns:
- string error message
-
setExceptionErrorMessage
Set up the error message associated with the exception.- Parameters:
exceptionErrorMessage
- - string error message
-
getExceptionSystemAction
Return the description of the action taken by the system as a result of the exception.- 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.- Parameters:
exceptionSystemAction
- - string description of the action taken
-
getExceptionUserAction
Return the action that a user should take to resolve the problem.- Returns:
- string instructions
-
setExceptionUserAction
Set up the action that a user should take to resolve the problem.- Parameters:
exceptionUserAction
- - string instructions
-
getExceptionProperties
Return the additional properties stored by the exceptions.- Returns:
- property map
-
setExceptionProperties
Set up the additional properties stored by the exceptions.- 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
-