hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r577823 - in /jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http: impl/nio/reactor/AbstractMultiworkerIOReactor.java nio/params/HttpNIOParams.java nio/params/NIOReactorParams.java
Date Thu, 20 Sep 2007 17:26:01 GMT
Author: olegk
Date: Thu Sep 20 10:26:01 2007
New Revision: 577823

URL: http://svn.apache.org/viewvc?rev=577823&view=rev
Log:
Renamed parameter class

Added:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/NIOReactorParams.java
      - copied, changed from r576141, jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/HttpNIOParams.java
Removed:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/HttpNIOParams.java
Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java?rev=577823&r1=577822&r2=577823&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java
Thu Sep 20 10:26:01 2007
@@ -44,7 +44,7 @@
 import java.util.Set;
 
 import org.apache.http.util.concurrent.ThreadFactory;
-import org.apache.http.nio.params.HttpNIOParams;
+import org.apache.http.nio.params.NIOReactorParams;
 import org.apache.http.nio.reactor.IOEventDispatch;
 import org.apache.http.nio.reactor.IOReactor;
 import org.apache.http.nio.reactor.IOReactorException;
@@ -87,7 +87,7 @@
             throw new IOReactorException("Failure opening selector", ex);
         }
         this.params = params;
-        this.selectTimeout = HttpNIOParams.getSelectInterval(params);
+        this.selectTimeout = NIOReactorParams.getSelectInterval(params);
         this.workerCount = workerCount;
         if (threadFactory != null) {
             this.threadFactory = threadFactory;

Copied: jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/NIOReactorParams.java
(from r576141, jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/HttpNIOParams.java)
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/NIOReactorParams.java?p2=jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/NIOReactorParams.java&p1=jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/HttpNIOParams.java&r1=576141&r2=577823&rev=577823&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/HttpNIOParams.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/params/NIOReactorParams.java
Thu Sep 20 10:26:01 2007
@@ -35,7 +35,7 @@
 
 /**
  * This class implements an adaptor around the {@link HttpParams} interface
- * to simplify manipulation of the HTTP NIO specific parameters.
+ * to simplify manipulation of the NIO reactor specific parameters.
  * <br/>
  * Note that the <i>implements</i> relation to {@link NIOReactorPNames}
  * is for compatibility with existing application code only. References to
@@ -49,9 +49,9 @@
  *
  * @see NIOReactorPNames
  */
-public final class HttpNIOParams {
+public final class NIOReactorParams implements NIOReactorPNames {
 
-    private HttpNIOParams() {
+    private NIOReactorParams() {
         super();
     }
 
@@ -59,32 +59,28 @@
         if (params == null) {
             throw new IllegalArgumentException("HTTP parameters may not be null");
         }
-        return params.getIntParameter
-            (NIOReactorPNames.CONTENT_BUFFER_SIZE, 1024);
+        return params.getIntParameter(CONTENT_BUFFER_SIZE, 1024);
     }
     
     public static void setContentBufferSize(final HttpParams params, int size) {
         if (params == null) {
             throw new IllegalArgumentException("HTTP parameters may not be null");
         }
-        params.setIntParameter
-            (NIOReactorPNames.CONTENT_BUFFER_SIZE, size);
+        params.setIntParameter(CONTENT_BUFFER_SIZE, size);
     }
 
     public static long getSelectInterval(final HttpParams params) {
         if (params == null) {
             throw new IllegalArgumentException("HTTP parameters may not be null");
         }
-        return params.getLongParameter
-            (NIOReactorPNames.SELECT_INTERVAL, 1000);
+        return params.getLongParameter(SELECT_INTERVAL, 1000);
     }
     
     public static void setSelectInterval(final HttpParams params, long ms) {
         if (params == null) {
             throw new IllegalArgumentException("HTTP parameters may not be null");
         }
-        params.setLongParameter
-            (NIOReactorPNames.SELECT_INTERVAL, ms);
+        params.setLongParameter(SELECT_INTERVAL, ms);
     }
 
 }



Mime
View raw message