svn commit: r560148 - /lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/impl/GlobalProxiesImpl.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Jul 27 01:44:54 2007
New Revision: 560148

URL: http://svn.apache.org/viewvc?view=rev&rev=560148
Log:
Refactoring: extracted method

Modified:
    lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/impl/GlobalProxiesImpl.java

Modified: lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/impl/GlobalProxiesImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/impl/GlobalProxiesImpl.java?view=diff&rev=560148&r1=560147&r2=560148
==============================================================================
--- lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/impl/GlobalProxiesImpl.java (original)
+++ lenya/trunk/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/impl/GlobalProxiesImpl.java Fri Jul 27 01:44:54 2007
@@ -81,8 +81,16 @@
             String url = proxyConfigs[p].getAttribute("url");
             Proxy proxy = new Proxy();
             proxy.setUrl(url);
-            this.ssl2proxy.put(Boolean.valueOf(ssl), proxy);
+            setProxy(ssl, proxy);
         }
+    }
+
+    /**
+     * @param ssl If the proxy is responsible for SSL requests.
+     * @param proxy A proxy.
+     */
+    public void setProxy(boolean ssl, Proxy proxy) {
+        this.ssl2proxy.put(Boolean.valueOf(ssl), proxy);
     }
 
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.