Class HttpAccessTransport

java.lang.Object
fr.paris.lutece.plugins.identitystore.v3.web.rs.service.HttpAccessTransport
All Implemented Interfaces:
fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
Direct Known Subclasses:
HttpApiManagerAccessTransport

public class HttpAccessTransport extends Object implements fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
IHttpTransportProvider which use library-httpaccess
  • Constructor Details

    • HttpAccessTransport

      public HttpAccessTransport()
  • Method Details

    • doPost

      public String doPost(String strUrl, Map<String,String> mapParams, Map<String,String> mapHeadersRequest) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Specified by:
      doPost in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • doPostJSON

      public <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
      Specified by:
      doPostJSON in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • doPutJSON

      public <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
      Specified by:
      doPutJSON in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • doPostJSONforList

      public <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
      Specified by:
      doPostJSONforList in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • doGet

      public <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
      Specified by:
      doGet in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • doDelete

      public <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
      Specified by:
      doDelete in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • doDeleteJSON

      public <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
      Specified by:
      doDeleteJSON in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • setApiEndPointUrl

      public void setApiEndPointUrl(String strApiEndPointUrl)
      set end point
      Specified by:
      setApiEndPointUrl in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Parameters:
      strApiEndPointUrl -
    • getApiEndPointUrl

      public String getApiEndPointUrl()
      get end point
      Specified by:
      getApiEndPointUrl in interface fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider
      Returns:
      strEndPointUrl