This section provides a description of the IBM® WebSphere® Multichannel Bank Transformation Toolkit file upload handler.
<kColl id="channelHandlers"> <field id="initializer" value="com.ibm.btt.channel.ChannelInitializer"/> <!-- allow opera users accesss the internet banking --> <kColl id="devices"> <field id="opera"value="html"description="contains"/> </kColl> <!--ajax channel configuration --> <kColl id="ajax"> <field id="encoding" value="UTF-8"/> <field id="cookies" value="true"/> <field id="runInSession" value="true"/> <field id="requestHandler" value="com.ibm.btt.cs.ajax.AjaxHtmlRequestHandler"/? <field id="presentationHandler" value="com.ibm.btt.cs.ajax.AjaxHtmlPresentationHandler"/> <!-- File handlers define all available file handlers for file upload widget. You can extend to create a new file handler, and then configure it here. --> <kColl id="fileHandlers"> <!-- sample handler, it can save and delete a file into file system with a file upload request --> <kColl>id="sampleFileHandler"> <!-- implementation class of the handler --> <field>id="implClass"value="com.ibm.btt.sample.SampleFileHandler"/> <!-- how many milli-seconds later, the fileupload handler will timeout, default value is 20 minutes --> <fieldid="timeout"value="2000"/> <!-- max file size that be allowed for the file upload handler --> <field id="maxSize" value="62914560"/> <!-- cache folder path of the file system, it is used to cache the upload file when uploading --> <field id="cachePath" value="c:\temp\fileupload\cache"/> <!-- file fold on the server, uploaded files will saved under the folder just support d:\er\wee" for DOS, or "/d/er/wee" for UNIX --> <field id="filepath" value="c:\temp\fileupload\upload"/> <!-- cache size, if file is bigger than the size, it will be saved in file system or else if will be hold in memory. --> <field id="memCacheSize" value="4096"/> </kColl> </kColl> </kColl>
A sample file handler that is implemented to save the file upload request stream to a file system is included in the WebSphere Multichannel Bank Transformation Toolkit sample.
The AbstractFileHandler class provides an extension point for developers to enable customers to submit file upload requests on demand.