Package sonia.scm.net
Class GlobalProxyConfiguration
java.lang.Object
sonia.scm.net.GlobalProxyConfiguration
- All Implemented Interfaces:
ProxyConfiguration
The
GlobalProxyConfiguration is an adapter between ProxyConfiguration and ScmConfiguration.
Whenever proxy settings are required, the GlobalProxyConfiguration should be used instead of using
ScmConfiguration directly. This makes it easier to support local proxy configurations.- Since:
- 2.23.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of hostnames which should not be routed over the proxy server.getHost()Return the hostname or ip address of the proxy server.Returns thr password for proxy server authentication.intgetPort()Returns port of the proxy server.Returns the username for proxy server authentication.booleanReturntrueif the proxy server required authentication.boolean
-
Constructor Details
-
GlobalProxyConfiguration
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceProxyConfiguration
-
getHost
Description copied from interface:ProxyConfigurationReturn the hostname or ip address of the proxy server.- Specified by:
getHostin interfaceProxyConfiguration
-
getPort
public int getPort()Description copied from interface:ProxyConfigurationReturns port of the proxy server.- Specified by:
getPortin interfaceProxyConfiguration
-
getExcludes
Description copied from interface:ProxyConfigurationReturns a list of hostnames which should not be routed over the proxy server.- Specified by:
getExcludesin interfaceProxyConfiguration
-
getUsername
Description copied from interface:ProxyConfigurationReturns the username for proxy server authentication.- Specified by:
getUsernamein interfaceProxyConfiguration
-
getPassword
Description copied from interface:ProxyConfigurationReturns thr password for proxy server authentication.- Specified by:
getPasswordin interfaceProxyConfiguration
-
isAuthenticationRequired
public boolean isAuthenticationRequired()Description copied from interface:ProxyConfigurationReturntrueif the proxy server required authentication.- Specified by:
isAuthenticationRequiredin interfaceProxyConfiguration
-