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 java.lang.Object
- implements IWebServiceCaller
WebServiceCaller
|
Method Summary |
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)
This method calls Rest WS to do an action |
protected java.lang.String |
trace(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)
Trace the web service call |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceCaller
public WebServiceCaller()
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)
throws fr.paris.lutece.util.httpaccess.HttpAccessException
- 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 signature
- Returns:
- the response as a string
- Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem
trace
protected java.lang.String trace(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)
- 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 © 2011 Mairie de Paris. All Rights Reserved.