public class HttpAccessTransport extends Object implements IHttpTransportProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_FORMAT_CHARSET
The Constant CONTENT_FORMAT.
|
| Constructor and Description |
|---|
HttpAccessTransport() |
| 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
|
public static final String CONTENT_FORMAT_CHARSET
public String doPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest)
doPost in interface IHttpTransportProviderstrUrl - url to callmapParams - params to postmapHeadersRequest - headers of the requestpublic <T> T doPostJSON(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper)
doPostJSON in interface IHttpTransportProviderT - 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.