Class ApacheHttpRequestFactory

  • All Implemented Interfaces:
    HttpRequestFactory<org.apache.http.client.methods.HttpRequestBase>

    public class ApacheHttpRequestFactory
    extends Object
    implements HttpRequestFactory<org.apache.http.client.methods.HttpRequestBase>
    Responsible for creating Apache HttpClient 4 request objects.
    • Constructor Detail

      • ApacheHttpRequestFactory

        public ApacheHttpRequestFactory()
    • Method Detail

      • create

        public org.apache.http.client.methods.HttpRequestBase create​(Request<?> request,
                                                                     HttpClientSettings settings)
                                                              throws FakeIOException
        Description copied from interface: HttpRequestFactory
        A factory method for creating http requests accepted by the underlying http client from the sdk request objects.
        Specified by:
        create in interface HttpRequestFactory<org.apache.http.client.methods.HttpRequestBase>
        Parameters:
        request - sdk request object.
        settings - configuration to be set for the http request.
        Returns:
        an instance of request that is accepted by the underlying http client that SDK uses.
        Throws:
        FakeIOException