|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dataentry.util.http.MultipartServletRequest
Company MoreData
| Field Summary | |
protected java.util.Hashtable |
files
Lista de ficheiros enviados pelo browser. |
protected java.util.Hashtable |
filesData
InputStreams dos ficheiros, indexados pelo nome do ficheiro. |
protected java.util.Hashtable |
parameters
Lista de parametros enviados pelo browser. |
| Constructor Summary | |
MultipartServletRequest(javax.servlet.http.HttpServletRequest request)
|
|
MultipartServletRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDirectory)
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to 1 Megabyte. |
|
MultipartServletRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDirectory,
int maxPostSize)
Constructs a new MultipartRequest to handle the specified request, saving any uploaded files to the given directory, and limiting the upload size to the specified length. |
|
MultipartServletRequest(javax.servlet.ServletRequest request,
java.lang.String saveDirectory)
Constructor with an old signature, kept for backward compatibility. |
|
MultipartServletRequest(javax.servlet.ServletRequest request,
java.lang.String saveDirectory,
int maxPostSize)
Constructor with an old signature, kept for backward compatibility. |
|
| Method Summary | |
java.lang.String |
getContentType(java.lang.String name)
Returns the content type of the specified file (as supplied by the client browser), or null if the file was not included in the upload. |
java.io.File |
getFile(java.lang.String name)
Returns a File object for the specified file saved on the server's filesystem, or null if the file was not included in the upload. |
java.util.Enumeration |
getFileNames()
Returns the names of all the uploaded files as an Enumeration of Strings. |
byte[] |
getFilesData(java.lang.String fileName)
Devolve o conteudo de um ficheiro que foi recebido via http. |
java.lang.String |
getFilesystemName(java.lang.String name)
Returns the filesystem name of the specified file, or null if the file was not included in the upload. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of the named parameter as a String, or null if the parameter was not sent or was sent without a value. |
java.util.Enumeration |
getParameterNames()
Returns the names of all the parameters as an Enumeration of Strings. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the values of the named parameter as a String array, or null if the parameter was not sent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable parameters
protected java.util.Hashtable files
protected java.util.Hashtable filesData
| Constructor Detail |
public MultipartServletRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDirectory)
throws java.io.IOException
request - the servlet request.saveDirectory - the directory in which to save any uploaded files.
java.io.IOException - if the uploaded content is larger than 1 Megabyte
or there's a problem reading or parsing the request.
public MultipartServletRequest(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
public MultipartServletRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDirectory,
int maxPostSize)
throws java.io.IOException
request - the servlet request.saveDirectory - the directory in which to save any uploaded files.maxPostSize - the maximum size of the POST content.
java.io.IOException - if the uploaded content is larger than
maxPostSize or there's a problem reading or parsing the request.
public MultipartServletRequest(javax.servlet.ServletRequest request,
java.lang.String saveDirectory)
throws java.io.IOException
public MultipartServletRequest(javax.servlet.ServletRequest request,
java.lang.String saveDirectory,
int maxPostSize)
throws java.io.IOException
| Method Detail |
public byte[] getFilesData(java.lang.String fileName)
fileName - O nome do ficheiro que foi recebido.public java.util.Enumeration getParameterNames()
public java.util.Enumeration getFileNames()
public java.lang.String getParameter(java.lang.String name)
name - the parameter name.
public java.lang.String[] getParameterValues(java.lang.String name)
name - the parameter name.
public java.lang.String getFilesystemName(java.lang.String name)
name - the file name.
public java.lang.String getContentType(java.lang.String name)
name - the file name.
public java.io.File getFile(java.lang.String name)
name - the file name.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||