public final class MultiResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> ServiceResponse<T> |
getServiceResponse(ServiceWriteRequest<T> request)
Fetches the response for an individual request included in the multimessage, using the request's unique ID.
|
ServiceResponse |
getServiceResponse(String ruid)
Fetches the response for an individual request included in the multimessage, using the request's unique ID.
|
int |
getStatus()
Returns the status code for the multimessage container request.
|
List<String> |
getUnprocessedRequestRuids()
Returns the list of unique request IDs that were not processed due to earlier failures.
|
public int getStatus()
getUnprocessedRequestRuids() collection and the results of each individual request from getServiceResponse(String)
should be inspected to confirm the requests were all successfully executed.public <T> ServiceResponse<T> getServiceResponse(ServiceWriteRequest<T> request)
getServiceResponse(String) but hides casting of the response to the
correct generic type.T - Type of response entity expected for the request.request - A request sent in the multi-message.public ServiceResponse getServiceResponse(String ruid)
ruid - ID of a request sent in the multi-message.Copyright © 2014. All Rights Reserved.