[Yanel-commits] rev 44463 - public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw

michi at wyona.com michi at wyona.com
Fri Aug 28 10:00:17 CEST 2009


Author: michi
Date: 2009-08-28 10:00:17 +0200 (Fri, 28 Aug 2009)
New Revision: 44463

Modified:
   public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
Log:
proxy port

Modified: public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java	2009-08-28 07:57:51 UTC (rev 44462)
+++ public/yanel/trunk/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java	2009-08-28 08:00:17 UTC (rev 44463)
@@ -376,6 +376,13 @@
                 url = new URL(url.getProtocol(), proxyHostName, url.getPort(), url.getFile());
             }
 
+            int proxyPort = realm.getProxyPort();
+            if (proxyPort >= 0) {
+                url = new URL(url.getProtocol(), url.getHost(), proxyPort, url.getFile());
+            } else {
+                url = new URL(url.getProtocol(), url.getHost(), url.getDefaultPort(), url.getFile());
+            }
+
             String proxyPrefix = realm.getProxyPrefix();
             if (proxyPrefix != null) {
                 url = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile().substring(proxyPrefix.length()));



More information about the Yanel-commits mailing list