added support for proxy servers with authentication

This commit is contained in:
Sebastian Sdorra
2011-09-03 17:42:21 +02:00
parent 8c0324de73
commit 2012b86cad
3 changed files with 105 additions and 0 deletions

View File

@@ -158,6 +158,8 @@ public class ScmConfiguration implements ListenerSupport<ConfigChangedListener>
this.enableProxy = other.enableProxy;
this.proxyPort = other.proxyPort;
this.proxyServer = other.proxyServer;
this.proxyUser = other.proxyUser;
this.proxyPassword = other.proxyPassword;
this.forceBaseUrl = other.forceBaseUrl;
this.baseUrl = other.baseUrl;
@@ -259,6 +261,18 @@ public class ScmConfiguration implements ListenerSupport<ConfigChangedListener>
return pluginUrl;
}
/**
* Method description
*
*
* @return
* @since 1.7
*/
public String getProxyPassword()
{
return proxyPassword;
}
/**
* Returns the proxy port.
*
@@ -281,6 +295,18 @@ public class ScmConfiguration implements ListenerSupport<ConfigChangedListener>
return proxyServer;
}
/**
* Method description
*
*
* @return
* @since 1.7
*/
public String getProxyUser()
{
return proxyUser;
}
/**
* Returns the servername of the SCM-Manager host.
*
@@ -496,6 +522,18 @@ public class ScmConfiguration implements ListenerSupport<ConfigChangedListener>
this.pluginUrl = pluginUrl;
}
/**
* Method description
*
*
* @param proxyPassword
* @since 1.7
*/
public void setProxyPassword(String proxyPassword)
{
this.proxyPassword = proxyPassword;
}
/**
* Method description
*
@@ -518,6 +556,18 @@ public class ScmConfiguration implements ListenerSupport<ConfigChangedListener>
this.proxyServer = proxyServer;
}
/**
* Method description
*
*
* @param proxyUser
* @since 1.7
*/
public void setProxyUser(String proxyUser)
{
this.proxyUser = proxyUser;
}
/**
* Method description
*
@@ -574,12 +624,18 @@ public class ScmConfiguration implements ListenerSupport<ConfigChangedListener>
@XmlElement(name = "plugin-url")
private String pluginUrl = DEFAULT_PLUGINURL;
/** Field description */
private String proxyPassword;
/** Field description */
private int proxyPort = 8080;
/** Field description */
private String proxyServer = "proxy.mydomain.com";
/** Field description */
private String proxyUser;
/** @deprecated use {@link #baseUrl} */
private String servername = "localhost";