Interface IHttpTransportProvider
public interface IHttpTransportProvider
-
Method Summary
Modifier and TypeMethodDescription<T extends 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 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 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 parametersmake POST request on given url with params and headers<T extends 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 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 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 JSONget end pointvoidsetApiEndPointUrl(String strApiEndPointUrl) set end point
-
Method Details
-
doPost
String doPost(String strUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> mapHeadersRequest) 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:
IdentityStoreException
-
doPostJSON
<T extends ResponseDto> T doPostJSON(String strUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> 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- 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:
IdentityStoreException
-
doPutJSON
<T extends ResponseDto> T doPutJSON(String strUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> 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- 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:
IdentityStoreException
-
doPostJSONforList
<T extends ResponseDto> List<T> doPostJSONforList(String strUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> 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- 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:
IdentityStoreException
-
doGet
<T extends ResponseDto> T doGet(String strEndPointUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> mapHeadersRequest, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) 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:
IdentityStoreException
-
doDelete
<T extends ResponseDto> T doDelete(String strEndPointUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> mapHeadersRequest, Class<T> responseJsonClass, com.fasterxml.jackson.databind.ObjectMapper mapper) 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:
IdentityStoreException
-
doDeleteJSON
<T extends ResponseDto> T doDeleteJSON(String strEndPointUrl, Map<String, String> mapParams, Map<String, throws IdentityStoreExceptionString> 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- 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:
IdentityStoreException
-
setApiEndPointUrl
set end point- Parameters:
strApiEndPointUrl-
-
getApiEndPointUrl
String getApiEndPointUrl()get end point- Returns:
- strEndPointUrl
-