Class RequestUtility

java.lang.Object
de.presti.ree6.utils.external.RequestUtility

public class RequestUtility extends Object
Utility used to work with HTTP Requests.
  • Constructor Details

    • RequestUtility

      public RequestUtility()
  • Method Details

    • request

      public static InputStream request(RequestUtility.Request request)
      Send a Request.
      Parameters:
      request - the Request.
      Returns:
      an InputStream.
    • requestJson

      public static com.google.gson.JsonElement requestJson(RequestUtility.Request request)
      Send a Request.
      Parameters:
      request - the Request.
      Returns:
      an JsonElement.
    • requestBytes

      public static byte[] requestBytes(RequestUtility.Request request)
      Send a Request.
      Parameters:
      request - the Request.
      Returns:
      a byte
    • requestString

      public static String requestString(RequestUtility.Request request)
      Send a Request.
      Parameters:
      request - the Request.
      Returns:
      a String