geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r881527 - /geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/AsyncContext.java
Date Tue, 17 Nov 2009 21:14:27 GMT
Author: djencks
Date: Tue Nov 17 21:14:26 2009
New Revision: 881527

URL: http://svn.apache.org/viewvc?rev=881527&view=rev
Log:
add missing method in asyncContext

Modified:
    geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/AsyncContext.java

Modified: geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/AsyncContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/AsyncContext.java?rev=881527&r1=881526&r2=881527&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/AsyncContext.java
(original)
+++ geronimo/specs/trunk/geronimo-servlet_3.0_spec/src/main/java/javax/servlet/AsyncContext.java
Tue Nov 17 21:14:26 2009
@@ -50,9 +50,17 @@
 
     ServletResponse getResponse();
 
+    /**
+     * Returns current timeout value in milliseconds. Zero or less means no timeout.
+     * If setTimeout has not been called, the container-specific default timeout is returned.
+     *
+     * @return timeout in milliseconds
+     */
+    long getTimeout();
+
     boolean hasOriginalRequestAndResponse();
 
-    void setTimeout(long timeout) throws IllegalStateException;
+    void setTimeout(long timeoutMilliseconds) throws IllegalStateException;
 
     void start(Runnable run);
 }



Mime
View raw message