public class RetrievedDocumentSet extends Response implements Serializable
Lists are pre-created and can therefore never be null
.
Constructor and Description |
---|
RetrievedDocumentSet()
Constructs the response.
|
RetrievedDocumentSet(Status status)
Constructs the response.
|
RetrievedDocumentSet(Status status,
List<RetrievedDocument> documents)
Constructs the response.
|
RetrievedDocumentSet(Throwable throwable,
ErrorCode defaultMetaDataError,
ErrorCode defaultError,
String location)
Constructs an error response object with the data from an exception.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<RetrievedDocument> |
getDocuments() |
int |
hashCode() |
String |
toString() |
public RetrievedDocumentSet()
public RetrievedDocumentSet(Status status)
status
- the status of the request execution.public RetrievedDocumentSet(Status status, List<RetrievedDocument> documents)
status
- the status of the request execution.documents
- the documents to add to this set.public RetrievedDocumentSet(Throwable throwable, ErrorCode defaultMetaDataError, ErrorCode defaultError, String location)
throwable
- the exception that occurred.defaultMetaDataError
- the default error code for XDSMetaDataException
.defaultError
- the default error code for any other exception.location
- error location.public List<RetrievedDocument> getDocuments()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
Copyright © 2018 Open eHealth Foundation. All rights reserved.