Class OMRSAPIResponse
java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttributeTypeDefListResponse
,AttributeTypeDefResponse
,AuditLogReportResponse
,AuditLogSeveritiesResponse
,BooleanResponse
,ClassificationResponse
,CohortMembershipResponse
,ConnectionResponse
,EntityDetailResponse
,EntitySummaryResponse
,InstanceGraphResponse
,MetadataCollectionIdResponse
,OMRSAPIPagedResponse
,RelationshipResponse
,TypeDefGalleryResponse
,TypeDefListResponse
,TypeDefResponse
,VoidResponse
OMRSAPIResponse provides a common header for OMRS managed rest to the OMRS REST API. It manages
information about OMRS exceptions. If no exception has been raised exceptionClassName is null.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructorOMRSAPIResponse
(OMRSAPIResponse template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the description of the activity 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.int
Return the HTTP Code to use if forwarding response to HTTP client.int
hashCode()
Create a hash code for this element type.void
setActionDescription
(String actionDescription) Set up the description of the activity in progress when the exception occurred.void
setExceptionCausedBy
(String exceptionCausedBy) Set up the name of any nested exception that may indicate the root cause of the exception.void
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
setExceptionErrorMessageId
(String exceptionErrorMessageId) Set up the formal message identifier for the error message.void
setExceptionErrorMessageParameters
(String[] exceptionErrorMessageParameters) Set up the list of parameters inserted in to the error message.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.toString()
Standard toString method.
-
Field Details
-
actionDescription
-
exceptionClassName
-
exceptionCausedBy
-
exceptionErrorMessage
-
exceptionErrorMessageId
-
exceptionErrorMessageParameters
-
exceptionSystemAction
-
exceptionUserAction
-
exceptionProperties
-
Constructor Details
-
OMRSAPIResponse
public OMRSAPIResponse()Default constructor -
OMRSAPIResponse
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.- 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
-
getExceptionCausedBy
Return the name of any nested exception that may indicate the root cause of the exception.- Returns:
- exception class name
-
setExceptionCausedBy
Set up the name of any nested exception that may indicate the root cause of the exception.- Parameters:
exceptionCausedBy
- exception class name
-
getActionDescription
Return the description of the activity in progress when the exception occurred.- Returns:
- string description
-
setActionDescription
Set up the description of the activity in progress when the exception occurred.- Parameters:
actionDescription
- string description
-
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
-
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
-
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.- 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.- 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.- Returns:
- list 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.- Parameters:
exceptionErrorMessageParameters
- list of strings
-
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
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-