Return-Path: X-Original-To: apmail-hc-commits-archive@www.apache.org Delivered-To: apmail-hc-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48E1488AA for ; Wed, 7 Sep 2011 18:11:11 +0000 (UTC) Received: (qmail 58493 invoked by uid 500); 7 Sep 2011 18:11:11 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 58447 invoked by uid 500); 7 Sep 2011 18:11:10 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 58439 invoked by uid 99); 7 Sep 2011 18:11:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 18:11:09 +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; Wed, 07 Sep 2011 18:11:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7F9252388AC8 for ; Wed, 7 Sep 2011 18:10:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1166285 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java Date: Wed, 07 Sep 2011 18:10:46 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110907181046.7F9252388AC8@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: olegk Date: Wed Sep 7 18:10:46 2011 New Revision: 1166285 URL: http://svn.apache.org/viewvc?rev=1166285&view=rev Log: Throw HttpException and IOException from HttpAsyncRequestConsumer#requestReceived Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java?rev=1166285&r1=1166284&r2=1166285&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java (original) +++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java Wed Sep 7 18:10:46 2011 @@ -29,6 +29,7 @@ package org.apache.http.nio.protocol; import java.io.Closeable; import java.io.IOException; +import org.apache.http.HttpException; import org.apache.http.HttpRequest; import org.apache.http.nio.ContentDecoder; import org.apache.http.nio.IOControl; @@ -39,7 +40,7 @@ import org.apache.http.protocol.HttpCont */ public interface HttpAsyncRequestConsumer extends Closeable { - void requestReceived(HttpRequest request); + void requestReceived(HttpRequest request) throws HttpException, IOException; void consumeContent(ContentDecoder decoder, IOControl ioctrl) throws IOException;