Interface IHttpTransportProvider
-
- All Known Implementing Classes:
HttpAccessTransport,HttpApiManagerAccessTransport
public interface IHttpTransportProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto>
TdoDelete(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 extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto>
TdoDeleteJSON(String strEndPointUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest, Object json, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper)make a Delete request on given url with parameters and json in body<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto>
TdoGet(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 parametersStringdoPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest)make POST request on given url with params and headers<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto>
TdoPostJSON(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 extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto>
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 extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto>
TdoPutJSON(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 JSONStringgetApiEndPointUrl()get end pointvoidsetApiEndPointUrl(String strApiEndPointUrl)set end point
-
-
-
Method Detail
-
doPost
String doPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
make POST request on given url with params and headers- Parameters:
strUrl- url to callmapParams- params to postmapHeadersRequest- headers of the request- Returns:
- response body as String
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
doPostJSON
<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto> 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
make POST request on given url with params and headers of a JSON object to retrieve another JSON- Type Parameters:
T- of the response- Parameters:
strUrl- url to callmapParams- params to postmapHeadersRequest- headers of the requestjson- JSON object to postresponseJsonClass- the classmapper- mapper for JSON serialize / deserialize- Returns:
- T
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
doPutJSON
<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto> 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
make POST request on given url with params and headers of a JSON object to retrieve another JSON- Type Parameters:
T- of the response- Parameters:
strUrl- url to callmapParams- params to postmapHeadersRequest- headers of the requestjson- JSON object to postresponseJsonClass- the classmapper- mapper for JSON serialize / deserialize- Returns:
- T
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
doPostJSONforList
<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto> 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
make POST request on given url with params and headers of a JSON object to retrieve another JSON- Type Parameters:
T- of the response- Parameters:
strUrl- url to callmapParams- params to postmapHeadersRequest- headers of the requestjson- JSON object to postresponseJsonClass- the classmapper- mapper for JSON serialize / deserialize- Returns:
- response list
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
doGet
<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto> 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
make a Get request on given url with parameters- Type Parameters:
T- of the response- Parameters:
strEndPointUrl- urlmapParams- param to add to urlmapHeadersRequest- request headerresponseJsonClass- the classmapper- mapper for JSON serialize / deserialize- Returns:
- response list
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
doDelete
<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto> 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
make a Delete request on given url with parameters- Type Parameters:
T- of the response- Parameters:
strEndPointUrl- urlmapParams- param to add to urlmapHeadersRequest- request headerresponseJsonClass- the classmapper- mapper for JSON serialize / deserialize- Returns:
- response list
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
doDeleteJSON
<T extends fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto> T doDeleteJSON(String strEndPointUrl, 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
make a Delete request on given url with parameters and json in body- Type Parameters:
T- of the response- Parameters:
strEndPointUrl- urlmapParams- param to add to urlmapHeadersRequest- request headerresponseJsonClass- the classmapper- mapper for JSON serialize / deserialize- Returns:
- response list
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
setApiEndPointUrl
void setApiEndPointUrl(String strApiEndPointUrl)
set end point- Parameters:
strApiEndPointUrl-
-
getApiEndPointUrl
String getApiEndPointUrl()
get end point- Returns:
- strEndPointUrl
-
-