com.ibm.ccd.ui.util
Class FileUploadUtil

java.lang.Object
  extended by 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.


Constructor Summary
FileUploadUtil(java.io.InputStream pInputStream, FileUploadBean pFileUploadBean)
          Constructor
 
Method Summary
static java.lang.String attachFile(MultipartRequest multi, FileUploadBean bean)
           
 java.lang.String uploadFile()
          This method uploads the file to the server depending on the users selection for protocol e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUploadUtil

public FileUploadUtil(java.io.InputStream pInputStream,
                      FileUploadBean pFileUploadBean)
Constructor

Parameters:
pInputStream - contains data
pFileUploadBean - contains configuration settings
Method Detail

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