public interface IHttpTransportProvider
| Modifier and Type | Method and Description |
|---|---|
String |
doPost(String strUrl,
Map<String,String> mapParams,
Map<String,String> mapHeadersRequest)
make POST request on given url with params and headers
|
<T> T |
doPostJSON(String strUrl,
Map<String,String> mapParams,
Map<String,String> mapHeadersRequest,
Object json,
Class<T> responseJsonClass,
com.fasterxml.jackson.databind.ObjectMapper mapper)
make POST request on given url with params and headers of a JSON object to retrieve another JSON
|
String doPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest)
strUrl - url to callmapParams - params to postmapHeadersRequest - headers of the request<T> T doPostJSON(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper)
T - of the responsestrUrl - url to callmapParams - params to postmapHeadersRequest - headers of the requestjson - JSON object to postresponseJsonClass - the classmapper - mapper for JSON serialize / deserializeCopyright © 2018 City of Paris. All rights reserved.