T - the expected response content type.public interface Callback<T>
BaseRequest.asJsonAsync(Callback) or .BaseRequest#asStringAsync(Callback).
Instances of Callback are notified when the HTTP request on which they are associated
is completed, failed or cancelled.
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled()
Method called when the HTTP Request associated with the current
Callback instance
has been cancelled. |
void |
completed(HttpResponse<T> response)
Method called when the HTTP Response is received.
|
void |
failed(Exception e)
Method called when the HTTP Request associated with the current
Callback instance
has failed. |
void completed(HttpResponse<T> response)
response - the responsevoid failed(Exception e)
Callback instance
has failed.e - the exceptionvoid cancelled()
Callback instance
has been cancelled.Copyright © 2013–2014 Wisdom Framework. All rights reserved.