hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r467445 - in /jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler: NHttpClientConnection.java NHttpConnection.java NHttpServerConnection.java
Date Tue, 24 Oct 2006 19:30:07 GMT
Author: olegk
Date: Tue Oct 24 12:30:06 2006
New Revision: 467445

URL: http://svn.apache.org/viewvc?view=rev&rev=467445
Log:
Moved #getHttpRequest() and #getHttpResponse() method to the generic NHttpConnection interface

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpClientConnection.java
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpConnection.java
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpServerConnection.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpClientConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpClientConnection.java?view=diff&rev=467445&r1=467444&r2=467445
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpClientConnection.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpClientConnection.java
Tue Oct 24 12:30:06 2006
@@ -31,7 +31,6 @@
 
 import org.apache.http.HttpException;
 import org.apache.http.HttpRequest;
-import org.apache.http.HttpResponse;
 
 /**
  * Abstract non-blocking client-side HTTP connection. It can be used to
@@ -40,14 +39,6 @@
  * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
  */
 public interface NHttpClientConnection extends NHttpConnection {
-
-    /** 
-     * Returns an HTTP response if it is already available. Otherwise returns 
-     * <tt>null</tt>.
-     * 
-     * @return an HTTP response if available. Otherwise returns <tt>null</tt>.
-     */
-    HttpResponse getHttpResponse();
 
     /**
      * Submits the HTTP request to the target server.

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpConnection.java?view=diff&rev=467445&r1=467444&r2=467445
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpConnection.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpConnection.java
Tue Oct 24 12:30:06 2006
@@ -30,6 +30,8 @@
 package org.apache.http.nio.handler;
 
 import org.apache.http.HttpConnection;
+import org.apache.http.HttpRequest;
+import org.apache.http.HttpResponse;
 import org.apache.http.protocol.HttpContext;
 
 /**
@@ -41,6 +43,22 @@
  */
 public interface NHttpConnection extends HttpConnection {
 
+    /** 
+     * Returns the current HTTP request if one is being received / transmitted.
+     * Otherwise returns <tt>null</tt>.
+     * 
+     * @return an HTTP request if available. Otherwise returns <tt>null</tt>.
+     */
+    HttpRequest getHttpRequest();
+
+    /** 
+     * Returns the current HTTP response if one is being received / transmitted. 
+     * Otherwise returns <tt>null</tt>.
+     * 
+     * @return an HTTP response if available. Otherwise returns <tt>null</tt>.
+     */
+    HttpResponse getHttpResponse();
+    
     /**
      * Requests event notifications to be triggered when the underlying
      * channel is ready for input oprtations.

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpServerConnection.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpServerConnection.java?view=diff&rev=467445&r1=467444&r2=467445
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpServerConnection.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/handler/NHttpServerConnection.java
Tue Oct 24 12:30:06 2006
@@ -30,7 +30,6 @@
 package org.apache.http.nio.handler;
 
 import org.apache.http.HttpException;
-import org.apache.http.HttpRequest;
 import org.apache.http.HttpResponse;
 
 /**
@@ -40,14 +39,6 @@
  * @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
  */
 public interface NHttpServerConnection extends NHttpConnection {
-
-    /** 
-     * Returns an HTTP request if it is already available. Otherwise returns 
-     * <tt>null</tt>.
-     * 
-     * @return an HTTP request if available. Otherwise returns <tt>null</tt>.
-     */
-    HttpRequest getHttpRequest();
 
     /**
      * Submits the HTTP response to the client.



Mime
View raw message