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

public abstract class Request<T extends Request<T>> extends Object
  • Field Details

    • connection

      protected HttpURLConnection connection
    • connected

      private boolean connected
    • url

      protected String url
  • Constructor Details

    • Request

      public Request(String p_i51788_1_, int p_i51788_2_, int p_i51788_3_)
  • Method Details

    • cookie

      public void cookie(String p_224962_1_, String p_224962_2_)
    • cookie

      public static void cookie(HttpURLConnection p_224967_0_, String p_224967_1_, String p_224967_2_)
    • getRetryAfterHeader

      public int getRetryAfterHeader()
    • getRetryAfterHeader

      public static int getRetryAfterHeader(HttpURLConnection p_224964_0_)
    • responseCode

      public int responseCode()
    • text

      public String text()
    • read

      private String read(InputStream p_224954_1_) throws IOException
      Throws:
      IOException
    • dispose

      private void dispose()
    • connect

      protected T connect()
    • doConnect

      protected abstract T doConnect()
    • get

      public static Request<?> get(String p_224953_0_)
    • get

      public static Request<?> get(String p_224960_0_, int p_224960_1_, int p_224960_2_)
    • post

      public static Request<?> post(String p_224951_0_, String p_224951_1_)
    • post

      public static Request<?> post(String p_224959_0_, String p_224959_1_, int p_224959_2_, int p_224959_3_)
    • delete

      public static Request<?> delete(String p_224952_0_)
    • put

      public static Request<?> put(String p_224965_0_, String p_224965_1_)
    • put

      public static Request<?> put(String p_224966_0_, String p_224966_1_, int p_224966_2_, int p_224966_3_)
    • getHeader

      public String getHeader(String p_224956_1_)
    • getHeader

      public static String getHeader(HttpURLConnection p_224961_0_, String p_224961_1_)