public class ApacheDownload extends Object
Constructor and Description |
---|
ApacheDownload(ApacheRequest request) |
ApacheDownload(ApacheRequest request,
org.apache.http.impl.client.CloseableHttpClient client) |
ApacheDownload(String url) |
ApacheDownload(String url,
org.apache.http.impl.client.CloseableHttpClient client) |
Modifier and Type | Method and Description |
---|---|
ApacheDownload |
client(org.apache.http.impl.client.CloseableHttpClient client) |
ApacheDownload |
download(File file) |
ApacheDownload |
download(OutputStream out) |
ApacheDownload |
download(OutputStream out,
boolean autoClose) |
ApacheDownload |
download(String file) |
ApacheRequest |
getRequest() |
ApacheResponse |
getResponse() |
public ApacheDownload(String url)
public ApacheDownload(String url, org.apache.http.impl.client.CloseableHttpClient client)
public ApacheDownload(ApacheRequest request)
public ApacheDownload(ApacheRequest request, org.apache.http.impl.client.CloseableHttpClient client)
public ApacheDownload client(org.apache.http.impl.client.CloseableHttpClient client)
public ApacheDownload download(String file) throws IOException
IOException
public ApacheDownload download(File file) throws IOException
IOException
public ApacheDownload download(OutputStream out) throws IOException
IOException
public ApacheDownload download(OutputStream out, boolean autoClose) throws IOException
IOException
public ApacheRequest getRequest()
public ApacheResponse getResponse()
Copyright © 2024. All rights reserved.