public class HttpUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.util.concurrent.ListeningExecutorService |
DOWNLOADER_EXECUTOR |
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() |
static java.lang.String |
postMap(java.net.URL url,
java.util.Map<java.lang.String,java.lang.Object> data,
boolean skipLoggingErrors,
java.net.Proxy p_151226_3_) |
public static final com.google.common.util.concurrent.ListeningExecutorService DOWNLOADER_EXECUTOR
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 p_151226_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