Class HttpComponentsClient

java.lang.Object
org.sourcelab.buildkite.api.client.http.HttpComponentsClient
All Implemented Interfaces:
Closeable, AutoCloseable, Client

public class HttpComponentsClient extends Object implements Client
Underlying HTTP Client implementation making use of HttpComponents 5.x library.
  • Constructor Details

    • HttpComponentsClient

      public HttpComponentsClient(Configuration configuration)
      Constructor.
      Parameters:
      configuration - User supplied API Client configuration.
  • Method Details

    • executeRequest

      public HttpResult executeRequest(Request request)
      Execute the given request and return the parsed response.
      Specified by:
      executeRequest in interface Client
      Parameters:
      request - The request to execute.
      Returns:
      Response from the API.
    • close

      public void close()
      Description copied from interface: Client
      Close the Client implementation and release any resources it may have open.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Client
      Specified by:
      close in interface Closeable