Class HttpClientBuilder

java.lang.Object
io.github.devlibx.easy.http.helper.HttpClientBuilder
All Implemented Interfaces:
IClientBuilder

public class HttpClientBuilder extends Object implements IClientBuilder
  • Constructor Details

    • HttpClientBuilder

      public HttpClientBuilder()
  • Method Details

    • accept

      public boolean accept(Server server, Api api)
      Specified by:
      accept in interface IClientBuilder
      Returns:
      true if this builder can process it.
    • buildClient

      public <T> T buildClient(Server server, Api api, Class<T> cls)
      Specified by:
      buildClient in interface IClientBuilder
      Returns:
      build a client for server and api
    • shutdown

      public void shutdown()
      Description copied from interface: IClientBuilder
      Shutdown builder
      Specified by:
      shutdown in interface IClientBuilder
    • buildHttpClient

      public org.apache.http.impl.client.CloseableHttpClient buildHttpClient(Server server, Api api)