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 18:45:09 UTC

svn commit: rev 57169 - cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/environment/portlet

Author: rgoers
Date: Wed Nov 10 09:45:08 2004
New Revision: 57169

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java
Log:
bug 32159 - Return content length and content type for portlet


Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/java/org/apache/cocoon/environment/portlet/ActionRequest.java	Wed Nov 10 09:45:08 2004
@@ -56,7 +56,6 @@
         return "POST";
     }
 
-
     // ActionRequest API methods
 
     /**
@@ -74,5 +73,19 @@
 
     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();
     }
 }