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 int
private static final int
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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:
-
-
Constructor Details
-
Request
-
-
Method Details
-
cookie
-
cookie
-
header
-
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
-