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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateApacheHttpClient(org.apache.http.impl.client.CloseableHttpClient client) Creates a wrapping instance. -
Method Summary
-
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:
executein interfacede.iip_ecosphere.platform.support.http.HttpClient- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-