|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.servlet.MultipartFormDataDecoder
public class MultipartFormDataDecoder
Parses a multipart/form-data request into its different fields, saving any files it finds along the way.
| Constructor Summary | |
|---|---|
MultipartFormDataDecoder(Melati melati,
InputStream in,
String contentType,
FormDataAdaptorFactory factory)
Constructor with default maximum size. |
|
MultipartFormDataDecoder(Melati melati,
InputStream in,
String contentType,
FormDataAdaptorFactory factory,
int maxSize)
Constructor specifying maximum size. |
|
| Method Summary | |
|---|---|
protected String |
extractField(String header,
String lBound,
String rBound)
Extract a String from header bounded by lBound and either: rBound or a "\r\n" or the end of the String. |
Hashtable<String,MultipartFormField> |
parseData()
Parse the uploaded data into its constituents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipartFormDataDecoder(Melati melati,
InputStream in,
String contentType,
FormDataAdaptorFactory factory)
melati - The Melatiin - An InputStream from which to read the datacontentType - A valid MIME typefactory - A FormDataAdaptorFactory to determine how to
store the object's data
public MultipartFormDataDecoder(Melati melati,
InputStream in,
String contentType,
FormDataAdaptorFactory factory,
int maxSize)
melati - The Melatiin - An InputStream from which to read the datacontentType - A valid MIME typefactory - A FormDataAdaptorFactory to determine how to
store the object's datamaxSize - The maximum size of the data| Method Detail |
|---|
public Hashtable<String,MultipartFormField> parseData()
throws IOException
Hashtable of the constituents
IOException - if an error occurs reading the input stream
protected String extractField(String header,
String lBound,
String rBound)
header - The field metadata to readlBound - Where to start reading fromrBound - where to stop reading
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||