Package com.axway.apim.lib.utils
Class HTTPClient
- java.lang.Object
-
- com.axway.apim.lib.utils.HTTPClient
-
- All Implemented Interfaces:
AutoCloseable
public class HTTPClient extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description HTTPClient(String url, String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.http.client.methods.CloseableHttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request)voidgetClient()
-
-
-
Constructor Detail
-
HTTPClient
public HTTPClient(String url, String username, String password) throws AppException
- Throws:
AppException
-
-
Method Detail
-
getClient
public void getClient() throws AppException- Throws:
AppException
-
execute
public org.apache.http.client.methods.CloseableHttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws IOException- Throws:
IOException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-