[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    svn commit: r322477 - in
From:       olegk () apache ! org
Date:       2005-10-16 14:52:56
Message-ID: 20051016145257.68362.qmail () minotaur ! apache ! org
[Download RAW message or body]

Author: olegk
Date: Sun Oct 16 07:52:50 2005
New Revision: 322477

URL: http://svn.apache.org/viewcvs?rev=322477&view=rev
Log:
Moved comments from the AbstractHttpConnection class to HttpConnection interface

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpConnection.java
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java


Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpConnection.java
                
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpConnection.java?rev=322477&r1=322476&r2=322477&view=diff
 ==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpConnection.java \
                (original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpConnection.java \
Sun Oct 16 07:52:50 2005 @@ -42,11 +42,25 @@
  */
 public interface HttpConnection {
 
+    /**
+     * This method will gracefully close the connection. It will attempt to 
+     * flush the transmitter's internal buffer prior to closing the underlying 
+     * socket. This method MAY NOT be called from a different thread to force 
+     * shutdonw the connection. Use #shutdown() instead.
+     * 
+     * @see #shutdown()
+     */
     void close() throws IOException;
     
     boolean isOpen();
  
     boolean isStale();
     
+    /**
+     * This method will force close the connection. This is the only method, 
+     * which may be called from a different thread to terminate the connection. 
+     * This method will not attempt to flush the transmitter's internal buffer 
+     * prior to closing the underlying socket.
+     */
     void shutdown() throws IOException;
 }

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
                
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/a \
pache/http/impl/AbstractHttpConnection.java?rev=322477&r1=322476&r2=322477&view=diff \
                ==============================================================================
                
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java \
                (original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java \
Sun Oct 16 07:52:50 2005 @@ -141,11 +141,6 @@
         return this.open;
     }
 
-    /**
-     * This is the only method, which may be called from a different thread to
-     * force shutdown the connection. This method will not attempt to flush the 
-     * transmitter's internal buffer prior to closing the underlying socket.
-     */
     public void shutdown() throws IOException {
         this.open = false;
         Socket tmpsocket = this.socket;
@@ -154,14 +149,6 @@
         }
     }
     
-    /**
-     * This method will gracefully close the connection. It will attempt to 
-     * flush the transmitter's internal buffer prior to closing the underlying 
-     * socket. This method MAY NOT be called from a different thread to force 
-     * shutdonw the connection. Use #shutdown() instead.
-     * 
-     * @see #shutdown()
-     */
     public void close() throws IOException {
         if (!this.open) {
             return;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic