public abstract class OMRSAPIResponse extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
exceptionClassName |
protected String |
exceptionErrorMessage |
protected Map<String,Object> |
exceptionProperties |
protected String |
exceptionSystemAction |
protected String |
exceptionUserAction |
protected int |
relatedHTTPCode |
| Constructor and Description |
|---|
OMRSAPIResponse()
Default constructor
|
OMRSAPIResponse(OMRSAPIResponse template)
Copy/clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getExceptionClassName()
Return the name of the Java class name to use to recreate the exception.
|
String |
getExceptionErrorMessage()
Return the error message associated with the exception.
|
Map<String,Object> |
getExceptionProperties()
Return any additional properties associated with the exception.
|
String |
getExceptionSystemAction()
Return the description of the action taken by the system as a result of the exception.
|
String |
getExceptionUserAction()
Return the action that a user should take to resolve the problem.
|
int |
getRelatedHTTPCode()
Return the HTTP Code to use if forwarding response to HTTP client.
|
int |
hashCode()
Create a hash code for this element type.
|
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 |
setExceptionProperties(Map<String,Object> exceptionProperties)
Set up any additional properties associated with the exception.
|
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.
|
String |
toString()
Standard toString method.
|
protected int relatedHTTPCode
protected String exceptionClassName
protected String exceptionErrorMessage
protected String exceptionSystemAction
protected String exceptionUserAction
public OMRSAPIResponse()
public OMRSAPIResponse(OMRSAPIResponse template)
template - object to copypublic int getRelatedHTTPCode()
public void setRelatedHTTPCode(int relatedHTTPCode)
relatedHTTPCode - integer HTTP status codepublic String getExceptionClassName()
public void setExceptionClassName(String exceptionClassName)
exceptionClassName - String name of the fully-qualified java class namepublic String getExceptionErrorMessage()
public void setExceptionErrorMessage(String exceptionErrorMessage)
exceptionErrorMessage - string error messagepublic String getExceptionSystemAction()
public void setExceptionSystemAction(String exceptionSystemAction)
exceptionSystemAction - string description of the action takenpublic String getExceptionUserAction()
public void setExceptionUserAction(String exceptionUserAction)
exceptionUserAction - string instructionspublic Map<String,Object> getExceptionProperties()
public void setExceptionProperties(Map<String,Object> exceptionProperties)
exceptionProperties - map of name value pairspublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2019 ODPi. All rights reserved.