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 Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.http.client.methods.CloseableHttpResponse -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateApacheHttpResponse(org.apache.http.client.methods.CloseableHttpResponse response) Creates a wrapping instance. -
Method Summary
-
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
- Specified by:
getEntityAsStringin interfacede.iip_ecosphere.platform.support.http.HttpResponse- Throws:
IOException
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfacede.iip_ecosphere.platform.support.http.HttpResponse
-
getReasonPhrase
- Specified by:
getReasonPhrasein interfacede.iip_ecosphere.platform.support.http.HttpResponse
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-