fr.paris.lutece.plugins.crmclient.util.http
Class WebServiceCaller

java.lang.Object
  extended by fr.paris.lutece.plugins.crmclient.util.http.WebServiceCaller
All Implemented Interfaces:
IWebServiceCaller

public class WebServiceCaller
extends Object
implements IWebServiceCaller

WebServiceCaller


Constructor Summary
WebServiceCaller()
           
 
Method Summary
 String callWebService(String strUrl, Map<String,String> mapParameters, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, List<String> listElements, HttpMethodEnum httpMethod)
          This method calls Rest WS to do an action
protected  String trace(String strUrl, Map<String,String> mapParameters, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, List<String> listElements)
          Trace the web service call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceCaller

public WebServiceCaller()
Method Detail

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 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

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 URI
mapParameters - The parameters
authenticator - The Request Authenticator
listElements - The list of elements to use to build the signature
Returns:
The trace


Copyright © 2013 Mairie de Paris. All Rights Reserved.