public class HTTPUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.util.concurrent.ListeningExecutorService |
DOWNLOADER_EXECUTOR |
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
HTTPUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.CompletableFuture<?> |
downloadResourcePack(java.io.File saveFile,
java.lang.String packUrl,
java.util.Map<java.lang.String,java.lang.String> requestProperties,
int maxSize,
IProgressUpdate progressCallback,
java.net.Proxy proxyIn) |
static int |
getSuitableLanPort() |
private static final org.apache.logging.log4j.Logger LOGGER
public static final com.google.common.util.concurrent.ListeningExecutorService DOWNLOADER_EXECUTOR
public static java.util.concurrent.CompletableFuture<?> downloadResourcePack(java.io.File saveFile, java.lang.String packUrl, java.util.Map<java.lang.String,java.lang.String> requestProperties, int maxSize, @Nullable IProgressUpdate progressCallback, java.net.Proxy proxyIn)
public static int getSuitableLanPort()