Package com.mojang.realmsclient.dto
Class UploadInfo
- java.lang.Object
-
- com.mojang.realmsclient.dto.ValueObject
-
- com.mojang.realmsclient.dto.UploadInfo
-
public class UploadInfo extends ValueObject
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.String
token
private java.net.URI
uploadEndpoint
private static java.util.regex.Pattern
URI_SCHEMA_PATTERN
private boolean
worldClosed
-
Constructor Summary
Constructors Modifier Constructor Description private
UploadInfo(boolean p_i242046_1_, java.lang.String p_i242046_2_, java.net.URI p_i242046_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.net.URI
assembleUri(java.lang.String p_243087_0_, int p_243087_1_)
static java.lang.String
createRequest(java.lang.String p_243090_0_)
private static java.lang.String
ensureEndpointSchema(java.lang.String p_243088_0_, java.util.regex.Matcher p_243088_1_)
java.lang.String
getToken()
java.net.URI
getUploadEndpoint()
boolean
isWorldClosed()
static UploadInfo
parse(java.lang.String p_230796_0_)
private static int
selectPortOrDefault(int p_243086_0_, int p_243086_1_)
-
Methods inherited from class com.mojang.realmsclient.dto.ValueObject
toString
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
URI_SCHEMA_PATTERN
private static final java.util.regex.Pattern URI_SCHEMA_PATTERN
-
worldClosed
private final boolean worldClosed
-
token
@Nullable private final java.lang.String token
-
uploadEndpoint
private final java.net.URI uploadEndpoint
-
-
Method Detail
-
parse
@Nullable public static UploadInfo parse(java.lang.String p_230796_0_)
-
assembleUri
@Nullable public static java.net.URI assembleUri(java.lang.String p_243087_0_, int p_243087_1_)
-
selectPortOrDefault
private static int selectPortOrDefault(int p_243086_0_, int p_243086_1_)
-
ensureEndpointSchema
private static java.lang.String ensureEndpointSchema(java.lang.String p_243088_0_, java.util.regex.Matcher p_243088_1_)
-
createRequest
public static java.lang.String createRequest(@Nullable java.lang.String p_243090_0_)
-
getToken
@Nullable public java.lang.String getToken()
-
getUploadEndpoint
public java.net.URI getUploadEndpoint()
-
isWorldClosed
public boolean isWorldClosed()
-
-