cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: rev 57340 - cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/environment/portlet
Date Wed, 10 Nov 2004 18:00:52 GMT
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();
+    }
 }

Mime
View raw message