Package io.keyko.common.helpers
Class HttpHelper.DownloadResponseHandler
- java.lang.Object
-
- io.keyko.common.helpers.HttpHelper.DownloadResponseHandler
-
- All Implemented Interfaces:
org.apache.http.client.ResponseHandler<HttpHelper.DownloadResult>
- Enclosing class:
- HttpHelper
static class HttpHelper.DownloadResponseHandler extends Object implements org.apache.http.client.ResponseHandler<HttpHelper.DownloadResult>
-
-
Field Summary
Fields Modifier and Type Field Description private String
destinationPath
-
Constructor Summary
Constructors Constructor Description DownloadResponseHandler(String destinationPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHelper.DownloadResult
handleResponse(org.apache.http.HttpResponse response)
-
-
-
Field Detail
-
destinationPath
private String destinationPath
-
-
Constructor Detail
-
DownloadResponseHandler
public DownloadResponseHandler(String destinationPath)
-
-
Method Detail
-
handleResponse
public HttpHelper.DownloadResult handleResponse(org.apache.http.HttpResponse response) throws org.apache.http.client.ClientProtocolException, IOException
- Specified by:
handleResponse
in interfaceorg.apache.http.client.ResponseHandler<HttpHelper.DownloadResult>
- Throws:
org.apache.http.client.ClientProtocolException
IOException
-
-