Class ApacheHttp.ApacheHttpClient

java.lang.Object
de.oktoflow.platform.support.http.apache.ApacheHttp.ApacheHttpClient
All Implemented Interfaces:
de.iip_ecosphere.platform.support.http.HttpClient, Closeable, AutoCloseable
Enclosing class:
ApacheHttp

private class ApacheHttp.ApacheHttpClient extends Object implements de.iip_ecosphere.platform.support.http.HttpClient
Represents a HTTP client.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.http.impl.client.CloseableHttpClient
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ApacheHttpClient(org.apache.http.impl.client.CloseableHttpClient client)
    Creates a wrapping instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    de.iip_ecosphere.platform.support.http.HttpResponse
    execute(de.iip_ecosphere.platform.support.http.HttpRequest<?> request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • client

      private org.apache.http.impl.client.CloseableHttpClient client
  • Constructor Details

    • ApacheHttpClient

      private ApacheHttpClient(org.apache.http.impl.client.CloseableHttpClient client)
      Creates a wrapping instance.
      Parameters:
      client - the implementing instance
  • Method Details

    • execute

      public de.iip_ecosphere.platform.support.http.HttpResponse execute(de.iip_ecosphere.platform.support.http.HttpRequest<?> request) throws IOException
      Specified by:
      execute in interface de.iip_ecosphere.platform.support.http.HttpClient
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException