public class HttpAccessTransport extends Object implements IHttpTransportProvider
| Constructor and Description |
|---|
HttpAccessTransport() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
doDelete(String strEndPointUrl,
Map<String,String> mapParams,
Map<String,String> mapHeadersRequest,
Class<T> responseJsonClass,
com.fasterxml.jackson.databind.ObjectMapper mapper)
make a Delete request on given url with parameters
|
<T> T |
doGet(String strEndPointUrl,
Map<String,String> mapParams,
Map<String,String> mapHeadersRequest,
Class<T> responseJsonClass,
com.fasterxml.jackson.databind.ObjectMapper mapper)
make a Get request on given url with parameters
|
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
|
<T> List<T> |
doPostJSONforList(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
|
<T> T |
doPutJSON(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 String doPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
doPost in interface IHttpTransportProviderstrUrl - url to callmapParams - params to postmapHeadersRequest - headers of the requestfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic <T> T doPostJSON(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
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 / deserializefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic <T> T doPutJSON(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
doPutJSON 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 / deserializefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic <T> List<T> doPostJSONforList(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
doPostJSONforList 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 / deserializefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic <T> T doGet(String strEndPointUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
IHttpTransportProviderdoGet in interface IHttpTransportProviderT - of the responsestrEndPointUrl - urlmapParams - param to add to urlmapHeadersRequest - request headerresponseJsonClass - the classmapper - mapper for JSON serialize / deserializefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic <T> T doDelete(String strEndPointUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
IHttpTransportProviderdoDelete in interface IHttpTransportProviderT - of the responsestrEndPointUrl - urlmapParams - param to add to urlmapHeadersRequest - request headerresponseJsonClass - the classmapper - mapper for JSON serialize / deserializefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.