incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r447460 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderKit.java
Date Mon, 18 Sep 2006 16:31:14 GMT
Author: awiner
Date: Mon Sep 18 09:31:13 2006
New Revision: 447460

URL: http://svn.apache.org/viewvc?view=rev&rev=447460
Log:
ADFFACES-180: CoreRenderKit.createResponseStream() throws UnsupportedOperationException -
interferes with Shale Remoting.  Thanks to Bill Keicher

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderKit.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderKit.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderKit.java?view=diff&rev=447460&r1=447459&r2=447460
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderKit.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/CoreRenderKit.java
Mon Sep 18 09:31:13 2006
@@ -452,10 +452,35 @@
   }
 
   @Override
-  public ResponseStream createResponseStream(OutputStream out)
+  public ResponseStream createResponseStream(final OutputStream output)
   {
-    // =-=AEW What to do here???
-    throw new UnsupportedOperationException();
+    return new ResponseStream()
+    {
+      public void write(int b) throws IOException
+      {
+        output.write(b);
+      }
+      
+      public void write(byte b[]) throws IOException
+      {
+        output.write(b);
+      }
+      
+      public void write(byte b[], int off, int len) throws IOException
+      {
+        output.write(b, off, len);
+      }
+
+      public void flush() throws IOException
+      {
+        output.flush();
+      }
+
+      public void close() throws IOException
+      {
+        output.close();
+      }
+    }; 
   }
 
   @Override



Mime
View raw message