incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r980067 - /sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
Date Wed, 28 Jul 2010 14:25:16 GMT
Author: cziegeler
Date: Wed Jul 28 14:25:16 2010
New Revision: 980067

URL: http://svn.apache.org/viewvc?rev=980067&view=rev
Log:
Draw title if getOutputStream is used

Modified:
    sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java

Modified: sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java?rev=980067&r1=980066&r2=980067&view=diff
==============================================================================
--- sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
(original)
+++ sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/PortletRenderResponseContextImpl.java
Wed Jul 28 14:25:16 2010
@@ -17,6 +17,8 @@
 package org.apache.sling.portal.container.internal;
 
 import java.io.IOException;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
 import java.io.PrintWriter;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -187,4 +189,12 @@ public class PortletRenderResponseContex
         this.drawWindowTitle(pw);
         return pw;
     }
+
+    @Override
+    public OutputStream getOutputStream() throws IOException, IllegalStateException {
+        final OutputStream os = super.getOutputStream();
+        this.drawWindowTitle(new PrintWriter(new OutputStreamWriter(os, getServletResponse().getCharacterEncoding())));
+        return os;
+    }
+
 }



Mime
View raw message