Interface HTTPClientFactory

All Known Implementing Classes:
AbstractHTTPClientFactory, DefaultHTTPClientFactory, MultithreadedHttpClientFactory

public interface HTTPClientFactory
Factory class to create a HTTP client. Default implementation is within library gt-http.
Author:
Roar Brænden
  • Method Details

    • canProcess

      boolean canProcess(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
      Method used to check if client in Hints can be created
      Returns:
      Client class
    • createClient

      HTTPClient createClient(List<Class<? extends HTTPBehavior>> behaviors)
      Method called to create the client
      Returns:
      default http client
    • createClient

      HTTPClient createClient(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
      Called by HTTPFactoryFinder to create client

      Takes care of any delegation

      Parameters:
      hints - Merged with system defaults
      Returns: