Package com.probely.api
Class Client
java.lang.Object
com.probely.api.Client
- All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
execute
(org.apache.hc.client5.http.classic.methods.HttpUriRequest request) execute
(org.apache.hc.client5.http.classic.methods.HttpUriRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<String> handler) org.apache.hc.client5.http.impl.classic.CloseableHttpClient
handleResponse
(org.apache.hc.core5.http.ClassicHttpResponse response)
-
Constructor Details
-
Client
-
Client
-
-
Method Details
-
execute
public String execute(org.apache.hc.client5.http.classic.methods.HttpUriRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<String> handler) throws IOException - Throws:
IOException
-
close
public void close() -
execute
public String execute(org.apache.hc.client5.http.classic.methods.HttpUriRequest request) throws IOException - Throws:
IOException
-
handleResponse
public String handleResponse(org.apache.hc.core5.http.ClassicHttpResponse response) throws AuthenticationException, ApiResponseException - Specified by:
handleResponse
in interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<String>
- Throws:
AuthenticationException
ApiResponseException
-
getHttpClient
public org.apache.hc.client5.http.impl.classic.CloseableHttpClient getHttpClient()
-