Class WebServiceCaller

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String callWebService​(java.lang.String strUrl, java.util.Map<java.lang.String,​java.lang.String> mapParameters, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, java.util.List<java.lang.String> listElements, HttpMethodEnum httpMethod)
      This method calls Rest WS to do an action
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebServiceCaller

        public WebServiceCaller()
    • Method Detail

      • callWebService

        public java.lang.String callWebService​(java.lang.String strUrl,
                                               java.util.Map<java.lang.String,​java.lang.String> mapParameters,
                                               fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                                               java.util.List<java.lang.String> listElements,
                                               HttpMethodEnum httpMethod)
                                        throws fr.paris.lutece.plugins.crmclient.util.CRMException
        This method calls Rest WS to do an action
        Specified by:
        callWebService in interface IWebServiceCaller
        Parameters:
        strUrl - the url
        mapParameters - the params to pass in the post
        authenticator - The request authenticator
        listElements - the list of elements to include in the signature
        httpMethod - the http method used
        Returns:
        the response as a string
        Throws:
        fr.paris.lutece.plugins.crmclient.util.CRMException - the exception if there is a problem