|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.plugins.multipart.apache.MultipartForm
public class MultipartForm
A multi-part form implemented via Apache commons file-upload.
Constructor Summary | |
---|---|
MultipartForm(java.util.List<org.apache.commons.fileupload.FileItem> items)
Constructor. |
|
MultipartForm(java.lang.String charEncoding,
int contentLength,
java.lang.String contentType,
java.io.InputStream inputStream)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getContentType(java.lang.String string)
Get the content type for a form item. |
java.util.List<java.lang.String> |
getFormItemNames()
Retrieve form item keys. |
java.io.InputStream |
getInputStream(java.lang.String string)
Retrieve an input stream for a form item. |
long |
getSize(java.lang.String string)
Get the size in bytes of a form item. |
java.lang.String |
getString(java.lang.String string)
Get the string representation of a form item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartForm(java.util.List<org.apache.commons.fileupload.FileItem> items)
items
- The list of items on this form.public MultipartForm(java.lang.String charEncoding, int contentLength, java.lang.String contentType, java.io.InputStream inputStream)
charEncoding
- The character encoding of the input stream.contentLength
- The number of bytes on the input stream.contentType
- The input stream's media type.inputStream
- The stream to parse as multipart.Method Detail |
---|
public java.util.List<java.lang.String> getFormItemNames()
public java.io.InputStream getInputStream(java.lang.String string) throws java.io.IOException
getInputStream
in interface MultipartFormData
string
- The key to the item.
java.io.IOException
- If a stream cannot be opened.public java.lang.String getContentType(java.lang.String string)
getContentType
in interface MultipartFormData
string
- The key to the item.
public long getSize(java.lang.String string)
getSize
in interface MultipartFormData
string
- The key to the item.
public java.lang.String getString(java.lang.String string)
getString
in interface MultipartFormData
string
- The key to the item.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |