tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r1354178 - in /tomcat/trunk: test/org/apache/catalina/filters/TesterResponse.java webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java
Date Tue, 26 Jun 2012 19:15:33 GMT
Author: fhanik
Date: Tue Jun 26 19:15:32 2012
New Revision: 1354178

URL: http://svn.apache.org/viewvc?rev=1354178&view=rev
Log:
Add in test and examples to compile with 3.1 additions


Modified:
    tomcat/trunk/test/org/apache/catalina/filters/TesterResponse.java
    tomcat/trunk/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java

Modified: tomcat/trunk/test/org/apache/catalina/filters/TesterResponse.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/filters/TesterResponse.java?rev=1354178&r1=1354177&r2=1354178&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/filters/TesterResponse.java (original)
+++ tomcat/trunk/test/org/apache/catalina/filters/TesterResponse.java Tue Jun 26 19:15:32
2012
@@ -213,4 +213,10 @@ public class TesterResponse
     @Override
     @Deprecated
     public void setStatus(int status, String message) {/* NOOP */}
+
+
+    @Override
+    public void setContentLengthLong(long length) {/* NOOP */}
+
+
 }

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java?rev=1354178&r1=1354177&r2=1354178&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java
(original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java
Tue Jun 26 19:15:32 2012
@@ -21,6 +21,7 @@ import java.io.OutputStream;
 import java.util.zip.GZIPOutputStream;
 
 import javax.servlet.ServletOutputStream;
+import javax.servlet.WriteListener;
 
 /**
  * Implementation of <b>ServletOutputStream</b> that works with
@@ -264,6 +265,27 @@ public class CompressionResponseStream e
     }
 
 
+
+    /**
+     * TODO SERVLET 3.1
+     */
+    @Override
+    public boolean canWrite() {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+
+    /**
+     * TODO SERVLET 3.1
+     */
+    @Override
+    public void setWriteListener(WriteListener listener) {
+        // TODO Auto-generated method stub
+
+    }
+
+
     /**
      * Write <code>len</code> bytes from the specified byte array, starting
      * at the specified offset, to our output stream.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message