Interface IHttpTransportProvider
- All Known Implementing Classes:
HttpAccessTransport,HttpApiManagerAccessTransport
public interface IHttpTransportProvider
IHttpTransportProvider
-
Method Summary
Modifier and TypeMethodDescriptionmake a DELETE request on given url with parametersmake a Get request on given url with parametersmake POST request on given url with params and headersmake POST JSON request on given url with json and headersmake Put request on given url with params and headersmake Put json request on given url with Json and headersget end pointvoidsetApiEndPointUrl(String strApiEndPointUrl) set end point
-
Method Details
-
doGet
String doGet(String strEndPointUrl, Map<String, String> mapParams, Map<String, String> mapHeadersRequest) make a Get request on given url with parameters- Parameters:
strEndPointUrl- urlmapParams- mapParamsmapHeadersRequest- request header- Returns:
- response list
-
doPost
String doPost(String strEndPointUrl, Map<String, String> mapParams, Map<String, String> 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
-
doPostJson
make POST JSON request on given url with json and headers- Parameters:
strUrl- url to calljson- jsonmapHeadersRequest- headers of the request- Returns:
- response body as String
-
doPut
String doPut(String strEndPointUrl, Map<String, String> mapParams, Map<String, String> mapHeadersRequest) make Put 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
-
doPutJson
make Put json request on given url with Json and headers- Parameters:
strUrl- url to calljson- jsonmapHeadersRequest- headers of the request- Returns:
- response body as String
-
setApiEndPointUrl
set end point- Parameters:
strApiEndPointUrl-
-
getApiEndPointUrl
String getApiEndPointUrl()get end point- Returns:
- strEndPointUrl
-
doDelete
make a DELETE request on given url with parameters- Parameters:
strEndPointUrl- urlmapParams- mapParamsmapHeadersRequest- request header- Returns:
- response list
-