Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 324FF1062A for ; Thu, 13 Jun 2013 09:04:25 +0000 (UTC) Received: (qmail 33415 invoked by uid 500); 13 Jun 2013 09:04:22 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 33210 invoked by uid 500); 13 Jun 2013 09:04:22 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 33180 invoked by uid 99); 13 Jun 2013 09:04:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 09:04:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 09:04:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C5A5A23888E4 for ; Thu, 13 Jun 2013 09:04:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1492579 - in /tomcat/trunk/java/javax/servlet: ReadListener.java WriteListener.java Date: Thu, 13 Jun 2013 09:04:00 -0000 To: dev@tomcat.apache.org From: markt@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130613090400.C5A5A23888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: markt Date: Thu Jun 13 09:04:00 2013 New Revision: 1492579 URL: http://svn.apache.org/r1492579 Log: Servlet 3.1 Javadoc updates Modified: tomcat/trunk/java/javax/servlet/ReadListener.java tomcat/trunk/java/javax/servlet/WriteListener.java Modified: tomcat/trunk/java/javax/servlet/ReadListener.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/ReadListener.java?rev=1492579&r1=1492578&r2=1492579&view=diff ============================================================================== --- tomcat/trunk/java/javax/servlet/ReadListener.java (original) +++ tomcat/trunk/java/javax/servlet/ReadListener.java Thu Jun 13 09:04:00 2013 @@ -19,7 +19,7 @@ package javax.servlet; import java.io.IOException; /** - * Receives notification of read events when using the non-blocking IO. + * Receives notification of read events when using non-blocking IO. * * @since Servlet 3.1 */ @@ -28,7 +28,7 @@ public interface ReadListener extends ja /** * Invoked when data is available to read. The container will invoke this * method the first time for a request as soon as there is data to read. - * Subsequent invocations will only if a call to + * Subsequent invocations will only occur if a call to * {@link ServletInputStream#isReady()} has returned false and data has * subsequently become available to read. * Modified: tomcat/trunk/java/javax/servlet/WriteListener.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/WriteListener.java?rev=1492579&r1=1492578&r2=1492579&view=diff ============================================================================== --- tomcat/trunk/java/javax/servlet/WriteListener.java (original) +++ tomcat/trunk/java/javax/servlet/WriteListener.java Thu Jun 13 09:04:00 2013 @@ -19,10 +19,27 @@ package javax.servlet; import java.io.IOException; /** - * TODO SERVLET 3.1 + * Receives notification of write events when using non-blocking IO. * + * @since Servlet 3.1 */ public interface WriteListener extends java.util.EventListener{ + + /** + * Invoked when it it possible to write data without blocking. The container + * will invoke this method the first time for a request as soon as data can + * be written. Subsequent invocations will only occur if a call to + * {@link ServletOutputStream#isReady()} has returned false and it has since + * become possible to write data. + * + * @throws IOException + */ public void onWritePossible() throws IOException; + + /** + * Invoked if an error occurs while writing the response. + * + * @param throwable + */ public void onError(java.lang.Throwable throwable); } \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org