Class Response
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.responses.Response
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
QueryResponse
,RetrievedDocumentSet
Basic response information.
All non-list members of this class are allowed to be null
.
The lists are pre-created and can therefore never be null
.
- Author:
- Jens Riemschneider
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Response
public Response()Constructs the response. -
Response
Constructs the response.- Parameters:
status
- the status of the request execution.
-
Response
public Response(Throwable throwable, ErrorCode defaultMetaDataError, ErrorCode defaultError, String location) Constructs an error response object with the data from an exception.- Parameters:
throwable
- the exception that occurred.defaultMetaDataError
- the default error code forXDSMetaDataException
.defaultError
- the default error code for any other exception.location
- error location.
-
-
Method Details
-
getStatus
- Returns:
- the status of the request execution.
-
setStatus
- Parameters:
status
- the status of the request execution.
-
getErrors
- Returns:
- the list of errors that occurred.
-
setErrors
- Parameters:
errors
- the list of errors that occurred.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-