RESPONSE - response type. It can be either a general-purpose
Response or the anticipated response entity
type.public interface InvocationCallback<RESPONSE>
| Modifier and Type | Method and Description |
|---|---|
void |
completed(RESPONSE response)
Called when the invocation was successfully completed.
|
void |
failed(ClientException error)
Called when the invocation has failed for any reason.
|
void completed(RESPONSE response)
response - response data.void failed(ClientException error)
Note that the provided ClientException may contain a cause represented by nested
WebApplicationException or one of its subclasses in case the response
status code is not successful
and the generic callback type is not Response.
error - contains failure details.Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.