|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileHandler
This class is a abstract class used to handler file upload process
Method Summary | |
---|---|
int |
cleanContext()
clean the fileupload info from processor or session context pre-defined. |
int |
deleteFile(java.lang.String fileId)
delete file from system, db or file system or other storages |
java.lang.String |
getFileId()
a Id used to identifier the upload file(s). |
java.lang.String |
getFileInfo(int code)
this method will return a json object that will be part of reply message of the request some thing like this {"name":"test", "fileId":"c:\temp\test.txt", [{"name":"test0", "fileId":"c:\temp\test0.txt"}, {"name":"test", "fileId":"c:\temp\test.txt"} ] } developer should implement this method align with the UI widget customization. |
java.lang.String |
getFileName(java.lang.String fileId)
get readable file name for developer or end user |
long |
getTimeout()
get the time out value of the file upload handler the time is milli-seconds. |
void |
initConfig(KeyedCollection config)
initial handler relative configuration info, it will be invoked when the handler created |
void |
onRequestExpired(java.lang.String fileId)
take actions when the fileupload request expired when file uploading. |
int |
requestValidate(javax.servlet.http.HttpServletRequest request)
validate whether the fileupload request is valid. e.g session expired, context error, or file system storage error etc. |
java.io.File |
retrieveFile(java.lang.String fileId)
retrieve saved file from system |
int |
saveFile(javax.servlet.http.HttpServletRequest request)
save the file into proper storage. e.g file system or database or remote server |
int |
upldateContext(java.lang.String fileId)
update the fileId info into processor or session context pre-defined. |
Method Detail |
---|
int saveFile(javax.servlet.http.HttpServletRequest request)
request
- fileupload request
int deleteFile(java.lang.String fileId)
fileId
- identifier of the file to be deleted
java.io.File retrieveFile(java.lang.String fileId)
fileId
- identifier of the file to be deleted
void onRequestExpired(java.lang.String fileId)
fileId
- identifier of the filejava.lang.String getFileId()
java.lang.String getFileName(java.lang.String fileId)
fileId
- identifier of the file
int upldateContext(java.lang.String fileId)
fileId
- identifier of the file
int cleanContext()
int requestValidate(javax.servlet.http.HttpServletRequest request)
request
- fileupload request
void initConfig(KeyedCollection config) throws DSEException
config
- a keyed collection with config info
DSEException
long getTimeout()
java.lang.String getFileInfo(int code)
code
- file upload code, e.g REQ_VALID,SAVE_SUCCESS,UPDATE_CTX_SUCCESS or other
customized code in extension handlers
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |