java.lang.Objectorg.objectweb.telosys.upload.FileManager
Constructor Summary | |
FileManager()
|
Method Summary | |
static boolean |
generateFileContent(javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletOutputStream out,
FileUploaded file)
Generates the Http Response from the file content |
static FileUploaded |
getFileFromHttpSession(javax.servlet.http.HttpServletRequest req,
java.lang.String sSessionKey)
Retuns the FileUploaded object stored in the Http Session |
static FileUploaded |
getFileFromScreenContext(javax.servlet.http.HttpServletRequest request,
int iContextId,
java.lang.String sContextAttribute)
Retuns the FileUploaded object stored as a Screen Context attribute |
static boolean |
removeFileFromHttpSession(javax.servlet.http.HttpServletRequest req,
java.lang.String sSessionKey)
Removes the FileUploaded object from the Http Session if any |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileManager()
Method Detail |
public static final FileUploaded getFileFromHttpSession(javax.servlet.http.HttpServletRequest req, java.lang.String sSessionKey)
req
- sSessionKey
- the session attribute key
public static final FileUploaded getFileFromScreenContext(javax.servlet.http.HttpServletRequest request, int iContextId, java.lang.String sContextAttribute)
request
- iContextId
- sContextAttribute
-
public static final boolean removeFileFromHttpSession(javax.servlet.http.HttpServletRequest req, java.lang.String sSessionKey)
req
- sSessionKey
- the session attribute key
public static final boolean generateFileContent(javax.servlet.http.HttpServletResponse response, javax.servlet.ServletOutputStream out, FileUploaded file) throws java.io.IOException
response
- out
- file
-
java.io.IOException