commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1807535 - /commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder.java
Date Wed, 06 Sep 2017 22:03:12 GMT
Author: ggregory
Date: Wed Sep  6 22:03:12 2017
New Revision: 1807535

URL: http://svn.apache.org/viewvc?rev=1807535&view=rev
Log:
Static fields should be accessed directly.

Modified:
    commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder.java

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder.java?rev=1807535&r1=1807534&r2=1807535&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileSystemConfigBuilder.java
Wed Sep  6 22:03:12 2017
@@ -18,6 +18,7 @@ package org.apache.commons.vfs2.provider
 
 import org.apache.commons.httpclient.Cookie;
 import org.apache.commons.httpclient.params.HttpConnectionManagerParams;
+import org.apache.commons.httpclient.params.HttpConnectionParams;
 import org.apache.commons.vfs2.FileSystem;
 import org.apache.commons.vfs2.FileSystemConfigBuilder;
 import org.apache.commons.vfs2.FileSystemOptions;
@@ -295,7 +296,7 @@ public class HttpFileSystemConfigBuilder
      */
     public void setConnectionTimeout(final FileSystemOptions opts, final int connectionTimeout)
     {
-        setParam(opts, HttpConnectionManagerParams.CONNECTION_TIMEOUT, Integer.valueOf(connectionTimeout));
+        setParam(opts, HttpConnectionParams.CONNECTION_TIMEOUT, Integer.valueOf(connectionTimeout));
     }
 
     /**
@@ -307,7 +308,7 @@ public class HttpFileSystemConfigBuilder
      */
     public int getConnectionTimeout(final FileSystemOptions opts)
     {
-        return getInteger(opts, HttpConnectionManagerParams.CONNECTION_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT);
+        return getInteger(opts, HttpConnectionParams.CONNECTION_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT);
     }
 
     /**
@@ -319,7 +320,7 @@ public class HttpFileSystemConfigBuilder
      */
     public void setSoTimeout(final FileSystemOptions opts, final int soTimeout)
     {
-        setParam(opts, HttpConnectionManagerParams.SO_TIMEOUT, Integer.valueOf(soTimeout));
+        setParam(opts, HttpConnectionParams.SO_TIMEOUT, Integer.valueOf(soTimeout));
     }
 
     /**
@@ -331,7 +332,7 @@ public class HttpFileSystemConfigBuilder
      */
     public int getSoTimeout(final FileSystemOptions opts)
     {
-        return getInteger(opts, HttpConnectionManagerParams.SO_TIMEOUT, DEFAULT_SO_TIMEOUT);
+        return getInteger(opts, HttpConnectionParams.SO_TIMEOUT, DEFAULT_SO_TIMEOUT);
     }
 
     /**



Mime
View raw message