public class HttpUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.concurrent.atomic.AtomicInteger |
DOWNLOAD_THREADS_STARTED |
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.lang.String |
buildPostString(java.util.Map<java.lang.String,java.lang.Object> data) |
static com.google.common.util.concurrent.ListenableFuture<java.lang.Object> |
downloadResourcePack(java.io.File saveFile,
java.lang.String packUrl,
java.util.Map<java.lang.String,java.lang.String> p_180192_2_,
int maxSize,
IProgressUpdate p_180192_4_,
java.net.Proxy p_180192_5_) |
static int |
getSuitableLanPort() |
private static java.lang.String |
post(java.net.URL url,
java.lang.String content,
boolean skipLoggingErrors,
java.net.Proxy p_151225_3_) |
static java.lang.String |
postMap(java.net.URL url,
java.util.Map<java.lang.String,java.lang.Object> data,
boolean skipLoggingErrors,
java.net.Proxy proxyIn) |
public static final com.google.common.util.concurrent.ListeningExecutorService DOWNLOADER_EXECUTOR
private static final java.util.concurrent.atomic.AtomicInteger DOWNLOAD_THREADS_STARTED
private static final org.apache.logging.log4j.Logger LOGGER
public static java.lang.String buildPostString(java.util.Map<java.lang.String,java.lang.Object> data)
public static java.lang.String postMap(java.net.URL url, java.util.Map<java.lang.String,java.lang.Object> data, boolean skipLoggingErrors, @Nullable java.net.Proxy proxyIn)
private static java.lang.String post(java.net.URL url, java.lang.String content, boolean skipLoggingErrors, @Nullable java.net.Proxy p_151225_3_)
public static com.google.common.util.concurrent.ListenableFuture<java.lang.Object> downloadResourcePack(java.io.File saveFile, java.lang.String packUrl, java.util.Map<java.lang.String,java.lang.String> p_180192_2_, int maxSize, @Nullable IProgressUpdate p_180192_4_, java.net.Proxy p_180192_5_)
public static int getSuitableLanPort() throws java.io.IOException
java.io.IOException