|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.servlet.MultiPartRequest
Multipart Form Data request.
This class decodes the multipart/form-data stream sent by a HTML form that uses a file input item.
Constructor Summary | |
MultiPartRequest(HttpServletRequest request)
Constructor. |
Method Summary | |
boolean |
contains(java.lang.String name)
Check if a named part is present |
java.lang.String |
getFilename(java.lang.String name)
Get any file name associated with a part. |
java.io.InputStream |
getInputStream(java.lang.String name)
Get the data of a part as a stream. |
java.util.Hashtable |
getParams(java.lang.String name)
Get the MIME parameters associated with a part. |
java.lang.String[] |
getPartNames()
Get the part names. |
java.lang.String |
getString(java.lang.String name)
Get the data of a part as a string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiPartRequest(HttpServletRequest request) throws java.io.IOException
request
- The request containing a multipart/form-data
request
java.io.IOException
- IOExceptionMethod Detail |
public java.lang.String[] getPartNames()
public boolean contains(java.lang.String name)
name
- The part
public java.lang.String getString(java.lang.String name)
name
- The part name
public java.io.InputStream getInputStream(java.lang.String name)
name
- The part name
public java.util.Hashtable getParams(java.lang.String name)
name
- The part name
public java.lang.String getFilename(java.lang.String name)
name
- The part name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |