|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdevpia.dextupload.ErrorManager
devpia.dextupload.FileUpload
The most important object of component in charge of actually uploading files and saving on server.
Constructor Summary | |
FileUpload(javax.servlet.http.HttpServletRequest Request,
javax.servlet.http.HttpServletResponse Response)
|
|
FileUpload(javax.servlet.http.HttpServletRequest Request,
javax.servlet.http.HttpServletResponse Response,
java.lang.String strCharSet)
|
Method Summary | |
void |
DeleteSavedFiles()
Deletes all files saved in server through upload. |
void |
dispose()
Release the entire allocated resources. |
void |
Flush()
Ignores all data sent by web browser without saving any files (including temporary files) to server. |
boolean |
getAutoMakeFolder()
Seeks the property of AutoMakeFolder function. |
java.lang.String |
getCharacterEncoding()
Seeks currently set Character Encoding value. |
FileItem |
getFileItem(java.lang.String _Name)
Obtains file item corresponding with _Name transmitted by user. |
java.util.Map |
getFileItemMap()
Obtains all file times transmitted by user in Map type. |
java.util.Enumeration |
getFileItemNames()
Obtains all names of file item transmitted by user. |
FileItem[] |
getFileItemValues(java.lang.String _Name)
Obtains all file items corresponding with _Name transmitted by user in arranged type. |
int |
getMaxFileLength()
Seeks the maximum uploadable file size. |
int |
getMaxTotalLength()
Seeks the total size of uploadable file. |
java.lang.String |
getParameter(java.lang.String _Name)
Obtains form data transmitted by user. |
java.util.Map |
getParameterMap()
Obtains all form data transmitted by user in Map type. |
java.util.Enumeration |
getParameterNames()
Obtains names of all forms transmitted by user. |
java.lang.String[] |
getParameterValues(java.lang.String _Name)
Obtains all form data corresponding with user transmitted _Nmae in array style. |
int |
getUploadedLength()
Seeks all sizes of uploaded files (including form data). |
void |
setAutoMakeFolder(boolean bAutoMake)
Automatically creates folder if assigned folder does not exist in DefaultPath, SaveAs. |
void |
setCharacterEncoding(java.lang.String strCharSet)
Sets encoding value to be used when processing form data. |
void |
setLicenseFilePath(java.lang.String strLicenseFilePath)
Set the location of dextuploadj.config file with authorization information. |
void |
setMaxFileLength(int nByteLength)
Limits the maximum size of files for uploading. |
void |
setMaxTotalLength(int nByteLength)
Limits the total size value of uploaded file. |
void |
SetProgress(int nID)
Sets value transferred by GetProgressID() of Progress object. |
void |
UploadStart()
Sets value transferred by GetProgressID() of Progress object. |
void |
UploadStart(java.lang.String DefaultPath)
Sets value transferred by GetProgressID() of Progress object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUpload(javax.servlet.http.HttpServletRequest Request, javax.servlet.http.HttpServletResponse Response)
Request
- JSP HttpServletRequest ObjectResponse
- JSP HttpServletResponse Objectpublic FileUpload(javax.servlet.http.HttpServletRequest Request, javax.servlet.http.HttpServletResponse Response, java.lang.String strCharSet)
Request
- JSP HttpServletRequest ObjectResponse
- JSP HttpServletResponse ObjectstrCharSet
- Encoding character setMethod Detail |
public void dispose() throws java.io.IOException, DEXTUploadException
java.io.IOException
DEXTUploadException
public void UploadStart() throws DEXTUploadException, java.io.IOException
DEXTUploadException
java.io.IOException
public void UploadStart(java.lang.String DefaultPath) throws DEXTUploadException, java.io.IOException
DefaultPath
- Basic route value to save temporary files and uploaded files. This folder must have authority to write/delete file.
DEXTUploadException
java.io.IOException
public void Flush() throws DEXTUploadException, java.io.IOException
DEXTUploadException
java.io.IOException
public java.lang.String getParameter(java.lang.String _Name)
_Name
- Form name
public java.lang.String[] getParameterValues(java.lang.String _Name)
_Name
- Form name
public java.util.Map getParameterMap()
public java.util.Enumeration getParameterNames()
public FileItem getFileItem(java.lang.String _Name)
_Name
- Form name
public FileItem[] getFileItemValues(java.lang.String _Name)
_Name
- Form name
public java.util.Map getFileItemMap()
public java.util.Enumeration getFileItemNames()
public void setAutoMakeFolder(boolean bAutoMake)
bAutoMake
- true – automatically creates folder it folder does not exist, false – does not create folder even when folder does not existpublic boolean getAutoMakeFolder()
public void setMaxFileLength(int nByteLength) throws DEXTUploadException
nByteLength
- - File size (byte)
DEXTUploadException
public int getMaxFileLength()
public void setMaxTotalLength(int nByteLength) throws DEXTUploadException
nByteLength
- - File size (byte)
DEXTUploadException
public int getMaxTotalLength()
public int getUploadedLength() throws DEXTUploadException
DEXTUploadException
public void setCharacterEncoding(java.lang.String strCharSet) throws DEXTUploadException
strCharSet
- Encoding character set
DEXTUploadException
public java.lang.String getCharacterEncoding()
public void setLicenseFilePath(java.lang.String strLicenseFilePath)
strLicenseFilePath
- Physical route of dextuploadj.config filepublic void DeleteSavedFiles() throws DEXTUploadException
DEXTUploadException
public void SetProgress(int nID) throws DEXTUploadException
nID
- - Value handed over by GetProgressID() of Progress object
DEXTUploadException
Progress.GetProgressID()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |