Class RequestUtility.Request

java.lang.Object
de.presti.ree6.utils.external.RequestUtility.Request
Enclosing class:
RequestUtility

public static class RequestUtility.Request extends Object
Utility class for Requests.
  • Constructor Details

    • Request

      public Request()
  • Method Details

    • builder

      public static RequestUtility.Request.RequestBuilder builder()
      Create a new Request builder.
      Returns:
      a new Request builder.
    • getUrl

      public String getUrl()
      Get the Request URL.
      Returns:
      the URL.
    • getUri

      public URI getUri()
      Get the URL as URI.
      Returns:
      the URL as URI
    • getBearerAuth

      public String getBearerAuth()
      Get the AuthToken.
      Returns:
      authToken.
    • getMethod

      public RequestUtility.Method getMethod()
      Get the HTTP Method.
      Returns:
      the Method.
    • getBodyPublisher

      public HttpRequest.BodyPublisher getBodyPublisher()
      Get the Body Publisher.
      Returns:
      the Body Publisher.
    • getHeaders

      public List<String[]> getHeaders()
      Get the Headers.
      Returns:
      the Headers.