|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.WcmMimeFormParser
WcmMimeFormParser parses a form that specifies its ENCTYPE as multipart/form-data, possibly containing one or more files in its request content.
Field Summary | |
static java.lang.String |
INPUT_FILENAME
INPUT_FILENAME can be passed to the getSectionParameter method to get the appropriate key-value. |
static java.lang.String |
INPUT_NAME
INPUT_NAME can be passed to the getSectionParameter method to get the appropriate key-value. |
static java.lang.String |
MIME_TYPE
MIME_TYPE can be passed to the getSectionParameter method to get the appropriate key-value. |
Constructor Summary | |
WcmMimeFormParser(javax.servlet.http.HttpServletRequest request)
Construct a new mime form parser for the request object. |
Method Summary | |
java.util.Hashtable |
getMimeEncodedParameters(WcmDataStore ds)
Reads the entire mime encoded request body, and parses it into a Hashtable of key-values. |
boolean |
getNextMimeSection()
Read past any current section content to the next section header. |
java.lang.String |
getSectionContent()
Read the section content, and return it as a String. |
long |
getSectionContentLength()
Returns the content length for the current section. |
java.lang.String |
getSectionParameter(java.lang.String key)
Get the section parameter key-value. |
java.util.Enumeration |
getSectionParameterKeys()
Get an enumeration of all of the keys contained in the section header. |
boolean |
isEOD()
Returns true if the end of the request input stream has been reached. |
boolean |
writeSectionContent(java.io.OutputStream os)
Read the section content, and write it to the specified OutputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String INPUT_NAME
public static java.lang.String INPUT_FILENAME
public static java.lang.String MIME_TYPE
Constructor Detail |
public WcmMimeFormParser(javax.servlet.http.HttpServletRequest request) throws java.io.IOException
request
- The HttpServletRequest.
java.io.IOException
Method Detail |
public java.util.Hashtable getMimeEncodedParameters(WcmDataStore ds) throws java.lang.Exception
ds
- A reference to WcmDataStore.
java.lang.Exception
public boolean isEOD()
public long getSectionContentLength()
public java.lang.String getSectionParameter(java.lang.String key)
key
- The key, which can be INPUT_NAME, INPUT_FILENAME or MIME_TYPE, or any other section header key-value that may be specified.
public java.util.Enumeration getSectionParameterKeys()
public java.lang.String getSectionContent() throws java.io.IOException
java.io.IOException
public boolean writeSectionContent(java.io.OutputStream os) throws java.io.IOException
os
- The OutputStream to write to.
java.io.IOException
public boolean getNextMimeSection() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |