public class OnErrorCallback extends Object implements org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
| Constructor and Description |
|---|
OnErrorCallback(MWRequestImpl request,
ApacheHttpClient apacheClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled() |
void |
completed(org.apache.http.HttpResponse response) |
void |
failed(Exception ex) |
HTTPErrorInfo.HTTP_Error_Info |
parseHttpErrorInfo(org.apache.http.HttpResponse response)
Parses the HTTPResponse and returns the HTTP_Error_Info
|
public OnErrorCallback(MWRequestImpl request, ApacheHttpClient apacheClient)
public void failed(Exception ex)
failed in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>public void completed(org.apache.http.HttpResponse response)
completed in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>public void cancelled()
cancelled in interface org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>public HTTPErrorInfo.HTTP_Error_Info parseHttpErrorInfo(org.apache.http.HttpResponse response) throws IOException
response - IOExceptionCopyright © 2015–2024. All rights reserved.