Class ApacheHttp.ApacheHttpResponse

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

private class ApacheHttp.ApacheHttpResponse extends Object implements de.iip_ecosphere.platform.support.http.HttpResponse
Represents a request response.
Author:
Holger Eichelberger, SSE
  • Field Details

    • response

      private org.apache.http.client.methods.CloseableHttpResponse response
  • Constructor Details

    • ApacheHttpResponse

      private ApacheHttpResponse(org.apache.http.client.methods.CloseableHttpResponse response)
      Creates a wrapping instance.
      Parameters:
      response - the implementing instance
  • Method Details

    • getEntityAsString

      public String getEntityAsString() throws IOException
      Specified by:
      getEntityAsString in interface de.iip_ecosphere.platform.support.http.HttpResponse
      Throws:
      IOException
    • getStatusCode

      public int getStatusCode()
      Specified by:
      getStatusCode in interface de.iip_ecosphere.platform.support.http.HttpResponse
    • getReasonPhrase

      public String getReasonPhrase()
      Specified by:
      getReasonPhrase in interface de.iip_ecosphere.platform.support.http.HttpResponse
    • close

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