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

All Known Implementing Classes:
WebServiceCaller

public interface IWebServiceCaller

WebServiceCaller Interface


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

Method Detail

callWSGetFileName

String callWSGetFileName(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

String callWSGet(String strUrl,
                 fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                 List<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

String callWSPost(String strUrl,
                  Map<String,List<String>> mapParameters,
                  fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                  List<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

String callWSPostMultiPart(String strUrl,
                           Map<String,List<String>> mapParameters,
                           Map<String,org.apache.commons.fileupload.FileItem> fileItems,
                           fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                           List<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(String strUrl,
                        String strFilePath,
                        fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                        List<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

callWSDownloadFile

org.apache.commons.fileupload.FileItem callWSDownloadFile(String strUrl,
                                                          fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
                                                          List<String> listElements)
                                                          throws fr.paris.lutece.util.httpaccess.HttpAccessException
Call WS to download a file

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


Copyright © 2014 Mairie de Paris. All Rights Reserved.