|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.MultiPartFormData
public class MultiPartFormData
This class parses multi-part form data from a servlet and allows the retrieval of each part.
Part
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
EXPECTED_CONTENT_TYPE
Expected content type for multipart form data. |
Constructor Summary | |
---|---|
MultiPartFormData(ServletRequest request)
Constructor. |
Method Summary | |
---|---|
int |
getCount()
Get the total number of parts. |
Part |
getPart(int iIndex)
Return a part by its index (indices start at 0). |
Part |
getPart(java.lang.String sName)
Return a part by its name. |
java.util.Collection |
getParts(java.lang.String sName)
Return parts by its name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXPECTED_CONTENT_TYPE
Constructor Detail |
---|
public MultiPartFormData(ServletRequest request) throws java.io.IOException
request
- the servlet request
java.io.IOException
- if an i/o error occurredMethod Detail |
---|
public Part getPart(int iIndex)
iIndex
- the index of part to get
java.lang.IndexOutOfBoundsException
- if a part with the given index does not existpublic Part getPart(java.lang.String sName)
sName
- the name of part to get
java.lang.IndexOutOfBoundsException
- if a part with the given index does not existpublic java.util.Collection getParts(java.lang.String sName)
sName
- the name of part to get
java.lang.IndexOutOfBoundsException
- if a part with the given index does not existpublic int getCount()
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |