stefano 02/05/19 15:59:54
Modified: src/java/org/apache/cocoon/generation Tag:
cocoon_2_0_3_branch StreamGenerator.java
Log:
allow the StreamGenerator work with multipart/form-data as well
Revision Changes Path
No revision
No revision
1.8.2.2 +3 -2
xml-cocoon2/src/java/org/apache/cocoon/generation/StreamGenerator.java
Index: StreamGenerator.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/generation/StreamGenerator.java,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -r1.8.2.1 -r1.8.2.2
--- StreamGenerator.java 14 Apr 2002 04:10:33 -0000 1.8.2.1
+++ StreamGenerator.java 19 May 2002 22:59:54 -0000 1.8.2.2
@@ -85,7 +85,7 @@
* number of bytes read is equal to the getContentLength() value.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Kinga Dziembowski</a>
- * @version CVS $Id: StreamGenerator.java,v 1.8.2.1 2002/04/14 04:10:33 vgritsenko
Exp $
+ * @version CVS $Id: StreamGenerator.java,v 1.8.2.2 2002/05/19 22:59:54 stefano Exp
$
*/
public class StreamGenerator extends ComposerGenerator
{
@@ -124,7 +124,8 @@
contentType = request.getContentType();
if (contentType == null) {
throw new IOException("Required header ContentType is missing.");
- } else if (contentType.startsWith("application/x-www-form-urlencoded"))
{
+ } else if (contentType.startsWith("application/x-www-form-urlencoded")
||
+ contentType.startsWith("multipart/form-data")) {
String sXml = request.getParameter(parameter);
inputSource = new InputSource(new StringReader(sXml));
} else if (contentType.startsWith("text/plain") ||
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]