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

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

public class WebServiceCaller
extends java.lang.Object
implements IWebServiceCaller

WebServiceCaller


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

Constructor Detail

WebServiceCaller

protected WebServiceCaller()
Private constructor

Method Detail

callWebService

public java.lang.String callWebService(java.lang.String strUrl,
                                       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 url
authenticator - the request authenticator
listElements - 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

public java.lang.String trace(java.lang.String strUrl,
                              fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                              java.util.List<java.lang.String> listElements)
Trace the web service caller

Parameters:
strUrl - the url
authenticator - the request authenticator
listElements - the list of elements to include in the signature
Returns:
the trace


Copyright © 2011 Mairie de Paris. All Rights Reserved.