Package net.minecraft.client.realms
Class Request<T extends Request<T>>
java.lang.Object
net.minecraft.client.realms.Request<T>
- Direct Known Subclasses:
Request.Delete
,Request.Get
,Request.Post
,Request.Put
@Environment(CLIENT) public abstract class Request<T extends Request<T>> extends Object
- Mappings:
Namespace Name official dmj
intermediary net/minecraft/class_4346
named net/minecraft/client/realms/Request
-
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 HttpURLConnection
connection
protected String
url
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected T
connect()
void
cookie(String key, String value)
static void
cookie(HttpURLConnection connection, String key, String value)
static Request<?>
delete(String url)
private void
dispose()
protected abstract T
doConnect()
static Request<?>
get(String url)
static Request<?>
get(String url, int connectTimeoutMillis, int readTimeoutMillis)
String
getHeader(String header)
static String
getHeader(HttpURLConnection connection, String header)
int
getRetryAfterHeader()
static int
getRetryAfterHeader(HttpURLConnection connection)
static Request<?>
post(String uri, String content)
static Request<?>
post(String uri, String content, int connectTimeoutMillis, int readTimeoutMillis)
static Request<?>
put(String url, String content)
static Request<?>
put(String url, String content, int connectTimeoutMillis, int readTimeoutMillis)
private String
read(InputStream in)
int
responseCode()
String
text()
-
Field Details
-
connection
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a:Ljava/net/HttpURLConnection;
intermediary field_19596
Lnet/minecraft/class_4346;field_19596:Ljava/net/HttpURLConnection;
named connection
Lnet/minecraft/client/realms/Request;connection:Ljava/net/HttpURLConnection;
-
connected
private boolean connected- Mappings:
Namespace Name Mixin selector official c
Ldmj;c:Z
intermediary field_19598
Lnet/minecraft/class_4346;field_19598:Z
named connected
Lnet/minecraft/client/realms/Request;connected:Z
-
url
- Mappings:
Namespace Name Mixin selector official b
Ldmj;b:Ljava/lang/String;
intermediary field_19597
Lnet/minecraft/class_4346;field_19597:Ljava/lang/String;
named url
Lnet/minecraft/client/realms/Request;url:Ljava/lang/String;
-
-
Constructor Details
-
Request
- Mappings:
Namespace Name Mixin selector official <init>
Ldmj;<init>(Ljava/lang/String;II)V
intermediary <init>
Lnet/minecraft/class_4346;<init>(Ljava/lang/String;II)V
named <init>
Lnet/minecraft/client/realms/Request;<init>(Ljava/lang/String;II)V
-
-
Method Details
-
cookie
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/lang/String;Ljava/lang/String;)V
intermediary method_21042
Lnet/minecraft/class_4346;method_21042(Ljava/lang/String;Ljava/lang/String;)V
named cookie
Lnet/minecraft/client/realms/Request;cookie(Ljava/lang/String;Ljava/lang/String;)V
-
cookie
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
intermediary method_21046
Lnet/minecraft/class_4346;method_21046(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
named cookie
Lnet/minecraft/client/realms/Request;cookie(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
-
getRetryAfterHeader
public int getRetryAfterHeader()- Mappings:
Namespace Name Mixin selector official a
Ldmj;a()I
intermediary method_21038
Lnet/minecraft/class_4346;method_21038()I
named getRetryAfterHeader
Lnet/minecraft/client/realms/Request;getRetryAfterHeader()I
-
getRetryAfterHeader
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/net/HttpURLConnection;)I
intermediary method_21044
Lnet/minecraft/class_4346;method_21044(Ljava/net/HttpURLConnection;)I
named getRetryAfterHeader
Lnet/minecraft/client/realms/Request;getRetryAfterHeader(Ljava/net/HttpURLConnection;)I
-
responseCode
public int responseCode()- Mappings:
Namespace Name Mixin selector official b
Ldmj;b()I
intermediary method_21047
Lnet/minecraft/class_4346;method_21047()I
named responseCode
Lnet/minecraft/client/realms/Request;responseCode()I
-
text
- Mappings:
Namespace Name Mixin selector official c
Ldmj;c()Ljava/lang/String;
intermediary method_21051
Lnet/minecraft/class_4346;method_21051()Ljava/lang/String;
named text
Lnet/minecraft/client/realms/Request;text()Ljava/lang/String;
-
read
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/io/InputStream;)Ljava/lang/String;
intermediary method_21039
Lnet/minecraft/class_4346;method_21039(Ljava/io/InputStream;)Ljava/lang/String;
named read
Lnet/minecraft/client/realms/Request;read(Ljava/io/InputStream;)Ljava/lang/String;
-
dispose
private void dispose()- Mappings:
Namespace Name Mixin selector official f
Ldmj;f()V
intermediary method_21056
Lnet/minecraft/class_4346;method_21056()V
named dispose
Lnet/minecraft/client/realms/Request;dispose()V
-
connect
- Mappings:
Namespace Name Mixin selector official d
Ldmj;d()Ldmj;
intermediary method_21054
Lnet/minecraft/class_4346;method_21054()Lnet/minecraft/class_4346;
named connect
Lnet/minecraft/client/realms/Request;connect()Lnet/minecraft/client/realms/Request;
-
doConnect
- Mappings:
Namespace Name Mixin selector official e
Ldmj;e()Ldmj;
intermediary method_21055
Lnet/minecraft/class_4346;method_21055()Lnet/minecraft/class_4346;
named doConnect
Lnet/minecraft/client/realms/Request;doConnect()Lnet/minecraft/client/realms/Request;
-
get
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/lang/String;)Ldmj;
intermediary method_21040
Lnet/minecraft/class_4346;method_21040(Ljava/lang/String;)Lnet/minecraft/class_4346;
named get
Lnet/minecraft/client/realms/Request;get(Ljava/lang/String;)Lnet/minecraft/client/realms/Request;
-
get
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/lang/String;II)Ldmj;
intermediary method_21041
Lnet/minecraft/class_4346;method_21041(Ljava/lang/String;II)Lnet/minecraft/class_4346;
named get
Lnet/minecraft/client/realms/Request;get(Ljava/lang/String;II)Lnet/minecraft/client/realms/Request;
-
post
- Mappings:
Namespace Name Mixin selector official b
Ldmj;b(Ljava/lang/String;Ljava/lang/String;)Ldmj;
intermediary method_21049
Lnet/minecraft/class_4346;method_21049(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_4346;
named post
Lnet/minecraft/client/realms/Request;post(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/realms/Request;
-
post
public static Request<?> post(String uri, String content, int connectTimeoutMillis, int readTimeoutMillis)- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/lang/String;Ljava/lang/String;II)Ldmj;
intermediary method_21043
Lnet/minecraft/class_4346;method_21043(Ljava/lang/String;Ljava/lang/String;II)Lnet/minecraft/class_4346;
named post
Lnet/minecraft/client/realms/Request;post(Ljava/lang/String;Ljava/lang/String;II)Lnet/minecraft/client/realms/Request;
-
delete
- Mappings:
Namespace Name Mixin selector official b
Ldmj;b(Ljava/lang/String;)Ldmj;
intermediary method_21048
Lnet/minecraft/class_4346;method_21048(Ljava/lang/String;)Lnet/minecraft/class_4346;
named delete
Lnet/minecraft/client/realms/Request;delete(Ljava/lang/String;)Lnet/minecraft/client/realms/Request;
-
put
- Mappings:
Namespace Name Mixin selector official c
Ldmj;c(Ljava/lang/String;Ljava/lang/String;)Ldmj;
intermediary method_21053
Lnet/minecraft/class_4346;method_21053(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_4346;
named put
Lnet/minecraft/client/realms/Request;put(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/realms/Request;
-
put
public static Request<?> put(String url, String content, int connectTimeoutMillis, int readTimeoutMillis)- Mappings:
Namespace Name Mixin selector official b
Ldmj;b(Ljava/lang/String;Ljava/lang/String;II)Ldmj;
intermediary method_21050
Lnet/minecraft/class_4346;method_21050(Ljava/lang/String;Ljava/lang/String;II)Lnet/minecraft/class_4346;
named put
Lnet/minecraft/client/realms/Request;put(Ljava/lang/String;Ljava/lang/String;II)Lnet/minecraft/client/realms/Request;
-
getHeader
- Mappings:
Namespace Name Mixin selector official c
Ldmj;c(Ljava/lang/String;)Ljava/lang/String;
intermediary method_21052
Lnet/minecraft/class_4346;method_21052(Ljava/lang/String;)Ljava/lang/String;
named getHeader
Lnet/minecraft/client/realms/Request;getHeader(Ljava/lang/String;)Ljava/lang/String;
-
getHeader
- Mappings:
Namespace Name Mixin selector official a
Ldmj;a(Ljava/net/HttpURLConnection;Ljava/lang/String;)Ljava/lang/String;
intermediary method_21045
Lnet/minecraft/class_4346;method_21045(Ljava/net/HttpURLConnection;Ljava/lang/String;)Ljava/lang/String;
named getHeader
Lnet/minecraft/client/realms/Request;getHeader(Ljava/net/HttpURLConnection;Ljava/lang/String;)Ljava/lang/String;
-