IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.ajax.fileupload
Class FileUploadUtil

java.lang.Object
  extended by com.ibm.btt.cs.ajax.fileupload.FileUploadUtil

public class FileUploadUtil
extends java.lang.Object

This is a util class to facilitate fileupload scenarios


Field Summary
static java.lang.String FILEUPLOAD_REQ
           
static java.lang.String JS_VAR_UNDEFINED
           
 
Constructor Summary
FileUploadUtil()
           
 
Method Summary
static void endRequest(javax.servlet.http.HttpServletRequest request)
          A work around way to make sure under a session there is only one fileupload request at a time Notes: Fileupload request will be merged as a normal Ajax request later
static Context getProcessorContext(java.lang.String sessionId, java.lang.String processId)
          get processor context
static Context getProperContext(java.lang.String sessionId, java.lang.String processId, java.lang.String dataName)
          get proper context which contains the fileupload dataname.
static Context getSessionContext(java.lang.String sessionId)
          get Session context
static void startRequest(javax.servlet.http.HttpServletRequest request)
          A work around way to make sure under a session there is only one fileupload request at a time Notes: Fileupload request will be merged as a normal Ajax request later
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JS_VAR_UNDEFINED

public static final java.lang.String JS_VAR_UNDEFINED
See Also:
Constant Field Values

FILEUPLOAD_REQ

public static final java.lang.String FILEUPLOAD_REQ
See Also:
Constant Field Values
Constructor Detail

FileUploadUtil

public FileUploadUtil()
Method Detail

getSessionContext

public static Context getSessionContext(java.lang.String sessionId)
                                 throws BTTSMException
get Session context

Parameters:
sessionId -
Returns:
session context or exception if not found
Throws:
BTTSMException

getProcessorContext

public static Context getProcessorContext(java.lang.String sessionId,
                                          java.lang.String processId)
                                   throws BTTSMException
get processor context

Parameters:
sessionId -
processId -
Returns:
processor context or null if errors
Throws:
BTTSMException

getProperContext

public static Context getProperContext(java.lang.String sessionId,
                                       java.lang.String processId,
                                       java.lang.String dataName)
                                throws BTTSMException
get proper context which contains the fileupload dataname. first check the processor context, if have, return the processor context else return the session context.

Parameters:
sessionId -
processId -
Returns:
return the context which contains the file upload dataname or null if errors
Throws:
BTTSMException

startRequest

public static void startRequest(javax.servlet.http.HttpServletRequest request)
A work around way to make sure under a session there is only one fileupload request at a time Notes: Fileupload request will be merged as a normal Ajax request later

Parameters:
request -
Throws:
java.lang.InterruptedException
BTTSMException

endRequest

public static void endRequest(javax.servlet.http.HttpServletRequest request)
A work around way to make sure under a session there is only one fileupload request at a time Notes: Fileupload request will be merged as a normal Ajax request later

Parameters:
request -
Throws:
BTTSMException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011