public interface HttpRequestCallback<T>
Modifier and Type | Method and Description |
---|---|
T |
onCallException(org.apache.http.HttpResponse response,
Throwable t)
Called when an error occurs when sending the request.
|
T |
onCallSuccess(org.apache.http.HttpResponse response)
Called when call was successful.
|
T onCallSuccess(org.apache.http.HttpResponse response)
method
- the method executed which can be used to extract response from.T onCallException(org.apache.http.HttpResponse response, Throwable t)
method
- the method executedt
- optional exception that caused the errorCopyright © 2012. All Rights Reserved.