Class QueryResponse
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.responses.Response
org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse
- All Implemented Interfaces:
Serializable
Contains the response data for a query.
Lists are pre-created and can therefore never be
null
.- Author:
- Jens Riemschneider
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs the response.QueryResponse
(Throwable throwable, ErrorCode defaultMetaDataError, ErrorCode defaultError, String location) Constructs an error response object with the data from an exception.QueryResponse
(Status status) Constructs the response. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
hashCode()
void
setAssociations
(List<Association> associations) void
setDocumentEntries
(List<DocumentEntry> documentEntries) void
setDocuments
(List<Document> documents) void
setFolders
(List<Folder> folders) void
setReferences
(List<ObjectReference> references) void
setSubmissionSets
(List<SubmissionSet> submissionSets) toString()
-
Constructor Details
-
QueryResponse
public QueryResponse()Constructs the response. -
QueryResponse
Constructs the response.- Parameters:
status
- the status of the request execution.
-
QueryResponse
public QueryResponse(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
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getReferences
-
setReferences
-
getDocumentEntries
-
setDocumentEntries
-
getFolders
-
setFolders
-
getSubmissionSets
-
setSubmissionSets
-
getAssociations
-
setAssociations
-
getDocuments
-
setDocuments
-