incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shee...@apache.org
Subject svn commit: r835664 - /incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/util/ContentCacheResponseWrapper.java
Date Fri, 13 Nov 2009 00:29:22 GMT
Author: sheetal
Date: Fri Nov 13 00:29:21 2009
New Revision: 835664

URL: http://svn.apache.org/viewvc?rev=835664&view=rev
Log:
OLIO-135 ServletResponse flushBuffer() caused the response to commit.

Modified:
    incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/util/ContentCacheResponseWrapper.java

Modified: incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/util/ContentCacheResponseWrapper.java
URL: http://svn.apache.org/viewvc/incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/util/ContentCacheResponseWrapper.java?rev=835664&r1=835663&r2=835664&view=diff
==============================================================================
--- incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/util/ContentCacheResponseWrapper.java
(original)
+++ incubator/olio/webapp/java/trunk/ws/apps/webapp/src/java/org/apache/olio/webapp/util/ContentCacheResponseWrapper.java
Fri Nov 13 00:29:21 2009
@@ -38,7 +38,7 @@
     private int contentLength;
     private String contentType;
     private ServletOutputStream stream;
-    
+
     /** Creates a new instance of ContentCacheResponseWrapper */
     public ContentCacheResponseWrapper(HttpServletResponse response) {
         super (response);
@@ -54,14 +54,17 @@
         return bos.toByteArray();
     }
 
+    @Override
     public ServletOutputStream getOutputStream(){
         return stream;
     }
 
+    @Override
     public PrintWriter getWriter(){
         return new PrintWriter(getOutputStream(), true);
     }
 
+    @Override
     public void setContentLength(int i) {
         contentLength = i;
         super.setContentLength(i);
@@ -71,15 +74,28 @@
         return contentLength;
     }
 
+    @Override
     public void setContentType(String s) {
         contentType = s;
         super.setContentType(s);
     }
 
+    @Override
     public String getContentType() {
         return contentType;
     }
-    
+
+   
+
+    @Override public void setBufferSize(int i) {
+        System.err.println("setBufferSize(int i) called.");
+    }
+
+    @Override public void flushBuffer() throws IOException {
+        System.err.println("flushBuffer() called.");
+        stream.flush();
+    }
+  
 }
 
 class CacheContentServletOutputStream extends ServletOutputStream {



Mime
View raw message