fr.paris.lutece.plugins.crmclient.util.http
Class WebServiceCaller
java.lang.Object
fr.paris.lutece.plugins.crmclient.util.http.WebServiceCaller
- All Implemented Interfaces:
- IWebServiceCaller
public class WebServiceCaller
- extends Object
- implements IWebServiceCaller
WebServiceCaller
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceCaller
public WebServiceCaller()
callWebService
public String callWebService(String strUrl,
Map<String,String> mapParameters,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
List<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 urlmapParameters - the params to pass in the postauthenticator - The request authenticatorlistElements - the list of elements to include in the signaturehttpMethod - 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
trace
protected String trace(String strUrl,
Map<String,String> mapParameters,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
List<String> listElements)
- Trace the web service call
- Parameters:
strUrl - The WS URImapParameters - The parametersauthenticator - The Request AuthenticatorlistElements - The list of elements to use to build the signature
- Returns:
- The trace
Copyright © 2013 Mairie de Paris. All Rights Reserved.