tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r1355042 - in /tomcat/trunk/java: javax/servlet/ServletInputStream.java org/apache/catalina/connector/CoyoteInputStream.java
Date Thu, 28 Jun 2012 15:22:50 GMT
Author: fhanik
Date: Thu Jun 28 15:22:48 2012
New Revision: 1355042

URL: http://svn.apache.org/viewvc?rev=1355042&view=rev
Log:
Add another method found in spec

Modified:
    tomcat/trunk/java/javax/servlet/ServletInputStream.java
    tomcat/trunk/java/org/apache/catalina/connector/CoyoteInputStream.java

Modified: tomcat/trunk/java/javax/servlet/ServletInputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/ServletInputStream.java?rev=1355042&r1=1355041&r2=1355042&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/ServletInputStream.java (original)
+++ tomcat/trunk/java/javax/servlet/ServletInputStream.java Thu Jun 28 15:22:48 2012
@@ -86,6 +86,13 @@ public abstract class ServletInputStream
      * TODO SERVLET 3.1
      * @return
      */
+    public abstract int dataAvailable();
+
+
+    /**
+     * TODO SERVLET 3.1
+     * @return
+     */
     public abstract boolean isFinished();
     /**
      * TODO SERVLET 3.1

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteInputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteInputStream.java?rev=1355042&r1=1355041&r2=1355042&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteInputStream.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteInputStream.java Thu Jun 28 15:22:48
2012
@@ -251,14 +251,16 @@ public class CoyoteInputStream
         return false;
     }
 
+    @Override
+    public int dataAvailable() {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
 
-    /**
-     * TODO SERVLET 3.1
-     */
     @Override
     public boolean isReady() {
-        // TODO Auto-generated method stub
-        return false;
+        return dataAvailable()>0;
     }
 
 



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


Mime
View raw message