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
ConstructorsConstructorDescriptionConstructs 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 booleanbooleaninthashCode()voidsetAssociations(List<Association> associations) voidsetDocumentEntries(List<DocumentEntry> documentEntries) voidsetDocuments(List<Document> documents) voidsetFolders(List<Folder> folders) voidsetReferences(List<ObjectReference> references) voidsetSubmissionSets(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
-