Package net.commuty.parking.http
Class HttpClient
java.lang.Object
net.commuty.parking.http.HttpClient
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClient(URL baseUrl, Mapper mapper, Proxy proxy, int connectionTimeoutInMs, int requestTimeoutInMs) -
Method Summary
Modifier and TypeMethodDescription<T> TmakeGetRequest(String path, String token, Map<String, Collection<String>> requestParams, Class<T> type) <T> TmakePostRequest(String path, String token, Object body, Class<T> type)
-
Constructor Details
-
HttpClient
-
-
Method Details
-
makeGetRequest
public <T> T makeGetRequest(String path, String token, Map<String, Collection<String>> requestParams, Class<T> type) throws HttpClientException, HttpRequestException -
makePostRequest
public <T> T makePostRequest(String path, String token, Object body, Class<T> type) throws HttpClientException, HttpRequestException
-