Package org.ovirt.engine.sdk4.internal
Class HttpClient45
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.HttpClient45
-
- All Implemented Interfaces:
HttpClient
public class HttpClient45 extends Object implements HttpClient
This class implements methods to work with httpclient version 4.5
-
-
Constructor Summary
Constructors Constructor Description HttpClient45(org.apache.http.impl.client.CloseableHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close http connectionorg.apache.http.HttpResponse
execute(org.apache.http.client.methods.HttpUriRequest request)
This method will send http request
-
-
-
Method Detail
-
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws Exception
Description copied from interface:HttpClient
This method will send http request- Specified by:
execute
in interfaceHttpClient
- Parameters:
request
- request which should be send to host- Returns:
- response returned by host
- Throws:
Exception
-
close
public void close() throws Exception
Description copied from interface:HttpClient
Close http connection- Specified by:
close
in interfaceHttpClient
- Throws:
Exception
-
-