Class HttpAccessTransport
java.lang.Object
fr.paris.lutece.plugins.notificationstore.v1.web.rs.service.HttpAccessTransport
- All Implemented Interfaces:
IHttpTransportProvider
- Direct Known Subclasses:
HttpApiManagerAccessTransport
IHttpTransportProvider which use library-httpaccess
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
HttpAccessTransport
public HttpAccessTransport()
-
-
Method Details
-
setApiEndPointUrl
set end point- Specified by:
setApiEndPointUrlin interfaceIHttpTransportProvider- Parameters:
strApiEndPointUrl-
-
getApiEndPointUrl
get end point- Specified by:
getApiEndPointUrlin interfaceIHttpTransportProvider- Returns:
- strEndPointUrl
-
doGet
public String doGet(String strEndPointUrl, Map<String, String> mapParams, Map<String, String> mapHeadersRequest) Description copied from interface:IHttpTransportProvidermake a Get request on given url with parameters- Specified by:
doGetin interfaceIHttpTransportProvider- Parameters:
strEndPointUrl- urlmapParams- mapParamsmapHeadersRequest- request header- Returns:
- response list
-
doPost
public String doPost(String strEndPointUrl, Map<String, String> mapParams, Map<String, String> mapHeadersRequest) make POST request on given url with params and headers- Specified by:
doPostin interfaceIHttpTransportProvidermapParams- params to postmapHeadersRequest- headers of the request- Returns:
- response body as String
-
doPostJson
make POST JSON request on given url with json and headers- Specified by:
doPostJsonin interfaceIHttpTransportProviderjson- jsonmapHeadersRequest- headers of the request- Returns:
- response body as String
-
doPut
public String doPut(String strEndPointUrl, Map<String, String> mapParams, Map<String, String> mapHeadersRequest) make Put request on given url with params and headers- Specified by:
doPutin interfaceIHttpTransportProvidermapParams- params to postmapHeadersRequest- headers of the request- Returns:
- response body as String
-
doPutJson
make Put json request on given url with Json and headers- Specified by:
doPutJsonin interfaceIHttpTransportProviderjson- jsonmapHeadersRequest- headers of the request- Returns:
- response body as String
-
doDelete
Description copied from interface:IHttpTransportProvidermake a DELETE request on given url with parameters- Specified by:
doDeletein interfaceIHttpTransportProvider- Parameters:
strEndPointUrl- urlmapHeadersRequest- request header- Returns:
- response list
-