hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r747992 - in /httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http: impl/nio/reactor/ nio/protocol/
Date Thu, 26 Feb 2009 03:03:22 GMT
Author: sebb
Date: Thu Feb 26 03:03:22 2009
New Revision: 747992

URL: http://svn.apache.org/viewvc?rev=747992&view=rev
Log:
Document the Exceptions which are not currently thrown

Modified:
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpClientHandler.java
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpServiceHandler.java
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.java

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java?rev=747992&r1=747991&r2=747992&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractIOReactor.java
Thu Feb 26 03:03:22 2009
@@ -420,6 +420,7 @@
     /**
      * Closes out all new channels pending registration with the selector of 
      * this I/O reactor.
+     * @throws IOReactorException - not thrown currently
      */
     protected void closeNewChannels() throws IOReactorException {
         ChannelEntry entry;
@@ -439,6 +440,7 @@
     /**
      * Closes out all active channels registered with the selector of 
      * this I/O reactor.
+     * @throws IOReactorException - not thrown currently
      */
     protected void closeActiveChannels() throws IOReactorException {
         Set<SelectionKey> keys = this.selector.keys();

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java?rev=747992&r1=747991&r2=747992&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
Thu Feb 26 03:03:22 2009
@@ -264,11 +264,17 @@
         return this.inPlain.position() > 0 || this.status != ACTIVE;
     }
     
+    /**
+     * @throws IOException - not thrown currently
+     */
     public synchronized boolean isAppOutputReady() throws IOException {
         return this.status == ACTIVE
             && this.sslEngine.getHandshakeStatus() == HandshakeStatus.NOT_HANDSHAKING;
     }
 
+    /**
+     * @throws IOException - not thrown currently 
+     */
     public synchronized void inboundTransport() throws IOException {
         updateEventMask();
     }
@@ -302,6 +308,9 @@
         }
     }
     
+    /**
+     * @throws SSLException - not thrown currently 
+     */
     private synchronized int readPlain(final ByteBuffer dst) throws SSLException {
         if (dst == null) {
             throw new IllegalArgumentException("Byte buffer may not be null");

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpClientHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpClientHandler.java?rev=747992&r1=747991&r2=747992&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpClientHandler.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpClientHandler.java
Thu Feb 26 03:03:22 2009
@@ -365,6 +365,9 @@
         this.execHandler.initalizeContext(context, attachment);
     }
 
+    /**
+     * @throws IOException - not thrown currently 
+     */
     private void continueRequest(
             final NHttpClientConnection conn,
             final ClientConnState connState) throws IOException {
@@ -387,6 +390,9 @@
         connState.resetOutput();
     }
 
+    /**
+     * @throws HttpException - not thrown currently 
+     */
     private void processResponse(
             final NHttpClientConnection conn,
             final ClientConnState connState) throws IOException, HttpException {

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpServiceHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpServiceHandler.java?rev=747992&r1=747991&r2=747992&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpServiceHandler.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/AsyncNHttpServiceHandler.java
Thu Feb 26 03:03:22 2009
@@ -426,6 +426,9 @@
         response.setEntity(entity);
     }
 
+    /**
+     * @throws HttpException - not thrown currently 
+     */
     private void processRequest(
             final NHttpServerConnection conn,
             final HttpRequest request) throws IOException, HttpException {

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.java?rev=747992&r1=747991&r2=747992&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.java
Thu Feb 26 03:03:22 2009
@@ -425,6 +425,9 @@
                 conn);
     }
     
+    /**
+     * @throws IOException - not thrown currently 
+     */
     private void sendRequestBody(
             final HttpEntityEnclosingRequest request,
             final ClientConnState connState,



Mime
View raw message