public final class FetchDataResponse extends CwsResponse
If the request was made generally, i.e. without a Data Id, then a list of Metadata Objects is being returned. The list is limited to the number which was requested - and the records field will then contain the total amount of entries which was found, so it is possible to perform the lookup with pagination information.
If the request was made for a specific Data Id, and the Object exists in the database, then the list of Metadata will return a single entry, and the data field will be set with the unencrypted data.
Please see CwsResponse
for information about the result of the
processing.
Constructor and Description |
---|
FetchDataResponse()
Empty Constructor, to use if the setters are invoked.
|
FetchDataResponse(ReturnCode returnCode,
String returnMessage)
Error Constructor, used if an error occurred, and the request could not
complete successfully.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData() |
List<Metadata> |
getMetadata() |
long |
getRecords() |
void |
setData(byte[] data) |
void |
setMetadata(List<Metadata> metadata) |
void |
setRecords(long records) |
getReturnCode, getReturnMessage, isOk, setReturnCode, setReturnMessage
public FetchDataResponse()
public FetchDataResponse(ReturnCode returnCode, String returnMessage)
returnCode
- The CWS Return CodereturnMessage
- The CWS Return MessageCopyright © 2019 JavaDog.io. All rights reserved.