Class UploadInfo

java.lang.Object
com.mojang.realmsclient.dto.ValueObject
com.mojang.realmsclient.dto.UploadInfo

public class UploadInfo extends ValueObject
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DEFAULT_SCHEMA

      private static final String DEFAULT_SCHEMA
      See Also:
    • DEFAULT_PORT

      private static final int DEFAULT_PORT
      See Also:
    • URI_SCHEMA_PATTERN

      private static final Pattern URI_SCHEMA_PATTERN
    • worldClosed

      private final boolean worldClosed
    • token

      @Nullable private final String token
    • uploadEndpoint

      private final URI uploadEndpoint
  • Constructor Details

    • UploadInfo

      private UploadInfo(boolean p_87693_, @Nullable String p_87694_, URI p_87695_)
  • Method Details

    • parse

      @Nullable public static UploadInfo parse(String p_87701_)
    • assembleUri

      @Nullable public static URI assembleUri(String p_87703_, int p_87704_)
    • selectPortOrDefault

      private static int selectPortOrDefault(int p_87698_, int p_87699_)
    • ensureEndpointSchema

      private static String ensureEndpointSchema(String p_87706_, Matcher p_87707_)
    • createRequest

      public static String createRequest(@Nullable String p_87710_)
    • getToken

      @Nullable public String getToken()
    • getUploadEndpoint

      public URI getUploadEndpoint()
    • isWorldClosed

      public boolean isWorldClosed()