public class WebServiceCaller extends Object implements IWebServiceCaller
| Constructor and Description |
|---|
WebServiceCaller() |
| Modifier and Type | Method and Description |
|---|---|
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> listFileItems,
fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator,
List<String> listElements)
Call Rest WS to execute a multipart POST method
|
public String callWSGetFileName(String strUrl) throws fr.paris.lutece.util.httpaccess.HttpAccessException
callWSGetFileName in interface IWebServiceCallerstrUrl - the urlfr.paris.lutece.util.httpaccess.HttpAccessException - exception if there is an HTTP issuepublic String callWSGet(String strUrl, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, List<String> listElements) throws fr.paris.lutece.util.httpaccess.HttpAccessException
callWSGet in interface IWebServiceCallerstrUrl - the urlauthenticator - The request authenticatorlistElements - the list of elements to include in the signaturefr.paris.lutece.util.httpaccess.HttpAccessException - exception if there is an HTTP issuepublic 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
callWSPost in interface IWebServiceCallerstrUrl - the urlmapParameters - the params to pass in the postauthenticator - The request authenticatorlistElements - the list of elements to include in the signaturefr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problempublic String callWSPostMultiPart(String strUrl, Map<String,List<String>> mapParameters, Map<String,org.apache.commons.fileupload.FileItem> listFileItems, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, List<String> listElements) throws fr.paris.lutece.util.httpaccess.HttpAccessException
callWSPostMultiPart in interface IWebServiceCallerstrUrl - the urlmapParameters - the params to pass in the postlistFileItems - the file to upload - map of (parameter_name, file_to_upload)authenticator - The request authenticatorlistElements - the list of elements to include in the signaturefr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problempublic void callWSDownloadFile(String strUrl, String strFilePath, fr.paris.lutece.util.signrequest.RequestAuthenticator authenticator, List<String> listElements) throws fr.paris.lutece.util.httpaccess.HttpAccessException
callWSDownloadFile in interface IWebServiceCallerstrUrl - the url of the file to downloadstrFilePath - the file path to download the fileauthenticator - the request authenticatorlistElements - the list of elements to include in the signaturefr.paris.lutece.util.httpaccess.HttpAccessException - exception if there is an HTTP errorpublic 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
callWSDownloadFile in interface IWebServiceCallerstrUrl - the url of the file to downloadauthenticator - the request authenticatorlistElements - the list of elements to include in the signatureFileItemfr.paris.lutece.util.httpaccess.HttpAccessException - exception if there is an HTTP errorCopyright © 2020 City of Paris. All rights reserved.