public abstract class AbstractHttpRequestCallback<T> extends Object implements HttpRequestCallback<T>
HttpResponse
on success
and throws runtime exceptions on errors.Constructor and Description |
---|
AbstractHttpRequestCallback() |
Modifier and Type | Method and Description |
---|---|
T |
onCallException(org.apache.http.HttpResponse response,
Throwable t)
Called when an error occurs when sending the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onCallSuccess
public T onCallException(org.apache.http.HttpResponse response, Throwable t)
HttpRequestCallback
onCallException
in interface HttpRequestCallback<T>
t
- optional exception that caused the errorRuntimeException
- error is wrapped and thrownCopyright © 2014. All rights reserved.