You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2011/09/07 20:10:46 UTC

svn commit: r1166285 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/protocol/HttpAsyncRequestConsumer.java

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<T> extends Closeable {
 
-    void requestReceived(HttpRequest request);
+    void requestReceived(HttpRequest request) throws HttpException, IOException;
 
     void consumeContent(ContentDecoder decoder, IOControl ioctrl) throws IOException;