Class Java11HttpRequestFactory

java.lang.Object
com.dnsimple.http.java11.Java11HttpRequestFactory
All Implemented Interfaces:
HttpRequestFactory

public class Java11HttpRequestFactory extends Object implements HttpRequestFactory
  • Constructor Details

    • Java11HttpRequestFactory

      public Java11HttpRequestFactory()
  • Method Details

    • execute

      public RawResponse execute(String userAgent, Optional<String> accessToken, HttpMethod method, URI uri, Object body)
      Description copied from interface: HttpRequestFactory
      Execute an HTTP request to an API endpoint
      Specified by:
      execute in interface HttpRequestFactory
      Parameters:
      userAgent - the user agent to be used on the HTTP request
      accessToken - the access token to be used for authentication against the API
      method - the HTTP method to be used on the HTTP request
      uri - the URI to be requested
      body - the HTTP request's body payload
      Returns:
      an RawResponse object with the status code, headers and body of the HTTP response