<T> T |
Downloader.fetchAndHandle(@NotNull java.net.URL url,
@NotNull org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) |
Download a resource from the given URL and have its content handled by the given ResponseHandler.
|
<T> T |
Downloader.fetchAndHandle(@NotNull java.net.URL url,
@NotNull org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler,
@NotNull java.util.List<org.apache.hc.core5.http.Header> hdr) |
Download a resource from the given URL and have its content handled by the given ResponseHandler.
|
<T> T |
Downloader.fetchAndHandle(@NotNull java.net.URL url,
@NotNull org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler,
@NotNull java.util.List<org.apache.hc.core5.http.Header> hdr,
boolean useProxy) |
Download a resource from the given URL and have its content handled by the given ResponseHandler.
|
java.lang.String |
Downloader.fetchContent(java.net.URL url,
boolean useProxy,
java.nio.charset.Charset charset) |
Retrieves a file from a given URL and returns the contents.
|
java.lang.String |
Downloader.fetchContent(java.net.URL url,
java.nio.charset.Charset charset) |
Retrieves a file from a given URL and returns the contents.
|
void |
Downloader.fetchFile(java.net.URL url,
java.io.File outputPath) |
Retrieves a file from a given URL and saves it to the outputPath.
|
void |
Downloader.fetchFile(java.net.URL url,
java.io.File outputPath,
boolean useProxy) |
Retrieves a file from a given URL and saves it to the outputPath.
|
void |
Downloader.fetchFile(java.net.URL url,
java.io.File outputPath,
boolean useProxy,
java.lang.String userKey,
java.lang.String passwordKey) |
Retrieves a file from a given URL using an ad-hoc created CredentialsProvider if needed
and saves it to the outputPath.
|
java.lang.String |
Downloader.postBasedFetchContent(java.net.URI url,
java.lang.String payload,
org.apache.hc.core5.http.ContentType payloadType,
java.util.List<org.apache.hc.core5.http.Header> hdr) |
Posts a payload to the URL and returns the response as a string.
|