fr.paris.lutece.plugins.blobstoreclient.util.http
Interface IWebServiceCaller

All Known Implementing Classes:
WebServiceCaller

public interface IWebServiceCaller

WebServiceCaller Interface


Method Summary
 void callWSDownloadFile(java.lang.String strUrl, java.lang.String strFilePath, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, java.util.List<java.lang.String> listElements)
          Call WS to download a file
 java.lang.String callWSGet(java.lang.String strUrl, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, java.util.List<java.lang.String> listElements)
          Call Rest WS to execute a GET method
 java.lang.String callWSGetFileName(java.lang.String strUrl)
          Call Rest WS to get the file name
 java.lang.String callWSPost(java.lang.String strUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> mapParameters, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, java.util.List<java.lang.String> listElements)
          Call Rest WS to do an action
 java.lang.String callWSPostMultiPart(java.lang.String strUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> mapParameters, java.util.Map<java.lang.String,org.apache.commons.fileupload.FileItem> fileItems, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, java.util.List<java.lang.String> listElements)
          Call Rest WS to execute a multipart POST method
 

Method Detail

callWSGetFileName

java.lang.String callWSGetFileName(java.lang.String strUrl)
                                   throws fr.paris.lutece.util.httpaccess.HttpAccessException
Call Rest WS to get the file name

Parameters:
strUrl - the url
Returns:
the file name
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - exception if there is an HTTP issue

callWSGet

java.lang.String callWSGet(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
Call Rest WS to execute a GET method

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 - exception if there is an HTTP issue

callWSPost

java.lang.String callWSPost(java.lang.String strUrl,
                            java.util.Map<java.lang.String,java.util.List<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
Call Rest WS to do an action

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
Returns:
the response as a String
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem

callWSPostMultiPart

java.lang.String callWSPostMultiPart(java.lang.String strUrl,
                                     java.util.Map<java.lang.String,java.util.List<java.lang.String>> mapParameters,
                                     java.util.Map<java.lang.String,org.apache.commons.fileupload.FileItem> fileItems,
                                     fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                                     java.util.List<java.lang.String> listElements)
                                     throws fr.paris.lutece.util.httpaccess.HttpAccessException
Call Rest WS to execute a multipart POST method

Parameters:
strUrl - the url
mapParameters - the params to pass in the post
fileItems - the file to upload - map of (parameter_name, file_to_upload)
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

callWSDownloadFile

void callWSDownloadFile(java.lang.String strUrl,
                        java.lang.String strFilePath,
                        fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                        java.util.List<java.lang.String> listElements)
                        throws fr.paris.lutece.util.httpaccess.HttpAccessException
Call WS to download a file

Parameters:
strUrl - the url of the file to download
strFilePath - the file path to download the file
authenticator - the request authenticator
listElements - the list of elements to include in the signature
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - exception if there is an HTTP error


Copyright © 2011 Mairie de Paris. All Rights Reserved.