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
- Mappings:
Namespace Name official eal
intermediary net/minecraft/class_4346
named net/minecraft/client/realms/Request
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private boolean
protected HttpURLConnection
private static final int
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected T
connect()
void
static void
cookie
(HttpURLConnection connection, String key, String value) static Request<?>
private void
dispose()
protected abstract T
static Request<?>
static Request<?>
static String
getHeader
(HttpURLConnection connection, String header) int
static int
getRetryAfterHeader
(HttpURLConnection connection) static Request<?>
static Request<?>
static Request<?>
static Request<?>
private String
read
(@Nullable InputStream in) int
text()
withHeader
(String name, String value)
-
Field Details
-
READ_TIMEOUT
private static final int READ_TIMEOUT- See Also:
- Mappings:
Namespace Name Mixin selector official d
Leal;d:I
intermediary field_32096
Lnet/minecraft/class_4346;field_32096:I
named READ_TIMEOUT
Lnet/minecraft/client/realms/Request;READ_TIMEOUT:I
-
CONNECT_TIMEOUT
private static final int CONNECT_TIMEOUT- See Also:
- Mappings:
Namespace Name Mixin selector official e
Leal;e:I
intermediary field_32097
Lnet/minecraft/class_4346;field_32097:I
named CONNECT_TIMEOUT
Lnet/minecraft/client/realms/Request;CONNECT_TIMEOUT:I
-
connection
- Mappings:
Namespace Name Mixin selector official a
Leal;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
Leal;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
Leal;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>
Leal;<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
Leal;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
Leal;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
-
withHeader
- Mappings:
Namespace Name Mixin selector official b
Leal;b(Ljava/lang/String;Ljava/lang/String;)Leal;
intermediary method_35685
Lnet/minecraft/class_4346;method_35685(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_4346;
named withHeader
Lnet/minecraft/client/realms/Request;withHeader(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/realms/Request;
-
getRetryAfterHeader
public int getRetryAfterHeader()- Mappings:
Namespace Name Mixin selector official a
Leal;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
Leal;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
Leal;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
Leal;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
Leal;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
Leal;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
Leal;d()Leal;
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
Leal;e()Leal;
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
Leal;a(Ljava/lang/String;)Leal;
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
Leal;a(Ljava/lang/String;II)Leal;
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 c
Leal;c(Ljava/lang/String;Ljava/lang/String;)Leal;
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
Leal;a(Ljava/lang/String;Ljava/lang/String;II)Leal;
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
Leal;b(Ljava/lang/String;)Leal;
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 d
Leal;d(Ljava/lang/String;Ljava/lang/String;)Leal;
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
Leal;b(Ljava/lang/String;Ljava/lang/String;II)Leal;
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
Leal;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
Leal;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;
-