Package com.mojang.realmsclient.client
Class Request<T extends Request<T>>
- java.lang.Object
-
- com.mojang.realmsclient.client.Request<T>
-
- Direct Known Subclasses:
Request.Delete
,Request.Get
,Request.Post
,Request.Put
public abstract class Request<T extends Request<T>> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Request.Delete
static class
Request.Get
static class
Request.Post
static class
Request.Put
-
Field Summary
Fields Modifier and Type Field Description private boolean
connected
protected java.net.HttpURLConnection
connection
protected java.lang.String
url
-
Constructor Summary
Constructors Constructor Description Request(java.lang.String p_i51788_1_, int p_i51788_2_, int p_i51788_3_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected T
connect()
void
cookie(java.lang.String p_224962_1_, java.lang.String p_224962_2_)
static void
cookie(java.net.HttpURLConnection p_224967_0_, java.lang.String p_224967_1_, java.lang.String p_224967_2_)
static Request<?>
delete(java.lang.String p_224952_0_)
private void
dispose()
protected abstract T
doConnect()
static Request<?>
get(java.lang.String p_224953_0_)
static Request<?>
get(java.lang.String p_224960_0_, int p_224960_1_, int p_224960_2_)
java.lang.String
getHeader(java.lang.String p_224956_1_)
static java.lang.String
getHeader(java.net.HttpURLConnection p_224961_0_, java.lang.String p_224961_1_)
int
getRetryAfterHeader()
static int
getRetryAfterHeader(java.net.HttpURLConnection p_224964_0_)
static Request<?>
post(java.lang.String p_224951_0_, java.lang.String p_224951_1_)
static Request<?>
post(java.lang.String p_224959_0_, java.lang.String p_224959_1_, int p_224959_2_, int p_224959_3_)
static Request<?>
put(java.lang.String p_224965_0_, java.lang.String p_224965_1_)
static Request<?>
put(java.lang.String p_224966_0_, java.lang.String p_224966_1_, int p_224966_2_, int p_224966_3_)
private java.lang.String
read(java.io.InputStream p_224954_1_)
int
responseCode()
java.lang.String
text()
-
-
-
Method Detail
-
cookie
public void cookie(java.lang.String p_224962_1_, java.lang.String p_224962_2_)
-
cookie
public static void cookie(java.net.HttpURLConnection p_224967_0_, java.lang.String p_224967_1_, java.lang.String p_224967_2_)
-
getRetryAfterHeader
public int getRetryAfterHeader()
-
getRetryAfterHeader
public static int getRetryAfterHeader(java.net.HttpURLConnection p_224964_0_)
-
responseCode
public int responseCode()
-
text
public java.lang.String text()
-
read
private java.lang.String read(java.io.InputStream p_224954_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
dispose
private void dispose()
-
connect
protected T connect()
-
doConnect
protected abstract T doConnect()
-
get
public static Request<?> get(java.lang.String p_224953_0_)
-
get
public static Request<?> get(java.lang.String p_224960_0_, int p_224960_1_, int p_224960_2_)
-
post
public static Request<?> post(java.lang.String p_224951_0_, java.lang.String p_224951_1_)
-
post
public static Request<?> post(java.lang.String p_224959_0_, java.lang.String p_224959_1_, int p_224959_2_, int p_224959_3_)
-
delete
public static Request<?> delete(java.lang.String p_224952_0_)
-
put
public static Request<?> put(java.lang.String p_224965_0_, java.lang.String p_224965_1_)
-
put
public static Request<?> put(java.lang.String p_224966_0_, java.lang.String p_224966_1_, int p_224966_2_, int p_224966_3_)
-
getHeader
public java.lang.String getHeader(java.lang.String p_224956_1_)
-
getHeader
public static java.lang.String getHeader(java.net.HttpURLConnection p_224961_0_, java.lang.String p_224961_1_)
-
-