com.ibm.ccd.ui.util
Class FileUploadUtil
java.lang.Object
com.ibm.ccd.ui.util.FileUploadUtil
public class FileUploadUtil
- extends java.lang.Object
This is the file upload utility class used for uploading files to the
WPC from WPS.
This class can provide various implementations for uploading the file. namely FTP, SOAP,MQ and SMTP.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUploadUtil
public FileUploadUtil(java.io.InputStream pInputStream,
FileUploadBean pFileUploadBean)
- Constructor
- Parameters:
pInputStream
- contains datapFileUploadBean
- contains configuration settings
attachFile
public static java.lang.String attachFile(MultipartRequest multi,
FileUploadBean bean)
throws UIException,
java.io.IOException,
java.io.FileNotFoundException
- Throws:
UIException
java.io.IOException
java.io.FileNotFoundException
uploadFile
public java.lang.String uploadFile()
throws WPCMediatorException
- This method uploads the file to the server depending on the users selection for
protocol e.g. FTP, SOAP, MQ etc..
- Returns:
- String
- Throws:
WPCMediatorException