You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by rg...@apache.org on 2004/11/10 19:00:52 UTC

svn commit: rev 57340 - cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/environment/portlet

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();
+    }
 }