public abstract class DownloadUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DownloadUtils.DownloadException |
| Modifier and Type | Method and Description |
|---|---|
static Map.Entry<Optional<Integer>,Optional<Exception>> |
download(Logger logger,
String fromUrl,
Path saveToFile,
Map<String,String> headers,
int maxTry) |
static boolean |
is2xxStatus(Integer status) |
static boolean |
is404Status(Integer status) |
static boolean |
is5xxStatus(Integer status) |
public static Map.Entry<Optional<Integer>,Optional<Exception>> download(Logger logger, String fromUrl, Path saveToFile, Map<String,String> headers, int maxTry)
public static boolean is2xxStatus(Integer status)
public static boolean is404Status(Integer status)
public static boolean is5xxStatus(Integer status)
Copyright © 2019. All rights reserved.