Author: rgoers
Date: Wed Nov 10 10:00:51 2004
New Revision: 57340
Modified:
cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java
Log:
bug 32159 - return content length and content type for portlet.
Modified:
cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java
==============================================================================
---
cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java
(original)
+++
cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java
Wed Nov 10 10:00:51 2004
@@ -75,4 +75,20 @@
public BufferedReader getReader() throws IOException {
return getActionRequest().getReader();
}
+
+ /**
+ * Action request provides content length for custom upload handling
+ */
+ public int getContentLength()
+ {
+ return getActionRequest().getContentLength();
+ }
+
+ /**
+ * Action request provides content type for custom upload handling
+ */
+ public String getContentType()
+ {
+ return getActionRequest().getContentType();
+ }
}