| java.lang.Object org.makumba.commons.attributes.HttpParameters org.makumba.commons.attributes.MultipartHttpParameters
MultipartHttpParameters | public class MultipartHttpParameters extends HttpParameters (Code) | | Parses the input stream of a http request as a multipart/form-data. Stores uploaded files as org.makumba.Text. Normal
http parameters are stored as Text.toString (simple) or Vectors (multiple) data inside the request:
- 1st line: boundary + CR+LF
- headers & values + CR+LF (e.g. filename="file.doc" Content-Type: application/octec-stream)
- CR+LF (Konqueror 3.2.1 sends CR CR)
- content (related to the headers just read)
- CR+LF - boundary CR+LF - headers... and so forth ...
- and after the last boundary you will have '--' with CR+LF
author: Cristian Bogdan author: Andreas Pesenhofer author: Rudolf Mayer version: $Id: MultipartHttpParameters.java 1726 2007-10-02 09:11:59Z manuel_gay $ |
compose | static Object compose(Object a1, Object a2)(Code) | | TODO this should not be here but in a util class Composes two objects, if both are vectors, unites them
Parameters: a1 - the first object Parameters: a2 - the second object a composed object |
computeAtStart | void computeAtStart()(Code) | | |
getParameter | public Object getParameter(String s)(Code) | | Composes what is read from the multipart with what is in the query string. The assumption is that the multipart
cannot change during execution, while the query string may change due to e.g. forwards
Parameters: s - the query string An Object holding the parameters |
|
|