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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
protected HttpURLConnection
private static final String
private static final int
private static final int
private static final String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSnapshotHeader
(boolean p_305796_) protected T
connect()
void
static void
cookie
(HttpURLConnection p_87336_, String p_87337_, String p_87338_) static Request
<?> private void
dispose()
protected abstract T
static Request
<?> static Request
<?> static String
getHeader
(HttpURLConnection p_87333_, String p_87334_) int
static int
getRetryAfterHeader
(HttpURLConnection p_87331_) static Request
<?> static Request
<?> static Request
<?> static Request
<?> private String
read
(InputStream p_87315_) int
text()
-
Field Details
-
connection
-
connected
private boolean connected -
url
-
DEFAULT_READ_TIMEOUT
private static final int DEFAULT_READ_TIMEOUT- See Also:
-
DEFAULT_CONNECT_TIMEOUT
private static final int DEFAULT_CONNECT_TIMEOUT- See Also:
-
IS_SNAPSHOT_KEY
- See Also:
-
COOKIE_KEY
- See Also:
-
-
Constructor Details
-
Request
-
-
Method Details
-
cookie
-
cookie
-
addSnapshotHeader
public void addSnapshotHeader(boolean p_305796_) -
getRetryAfterHeader
public int getRetryAfterHeader() -
getRetryAfterHeader
-
responseCode
public int responseCode() -
text
-
read
- Throws:
IOException
-
dispose
private void dispose() -
connect
-
doConnect
-
get
-
get
-
post
-
post
-
delete
-
put
-
put
-
getHeader
-
getHeader
-