Class Java11HttpRequestFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RawResponse execute​(java.lang.String userAgent, java.util.Optional<java.lang.String> accessToken, HttpMethod method, java.net.URI uri, java.lang.Object body)
      Execute an HTTP request to an API endpoint
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Java11HttpRequestFactory

        public Java11HttpRequestFactory()
    • Method Detail

      • execute

        public RawResponse execute​(java.lang.String userAgent,
                                   java.util.Optional<java.lang.String> accessToken,
                                   HttpMethod method,
                                   java.net.URI uri,
                                   java.lang.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