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.int
getPort()
Returns port of the proxy server.Returns the username for proxy server authentication.boolean
Returntrue
if the proxy server required authentication.boolean
-
Constructor Details
-
GlobalProxyConfiguration
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceProxyConfiguration
-
getHost
Description copied from interface:ProxyConfiguration
Return the hostname or ip address of the proxy server.- Specified by:
getHost
in interfaceProxyConfiguration
-
getPort
public int getPort()Description copied from interface:ProxyConfiguration
Returns port of the proxy server.- Specified by:
getPort
in interfaceProxyConfiguration
-
getExcludes
Description copied from interface:ProxyConfiguration
Returns a list of hostnames which should not be routed over the proxy server.- Specified by:
getExcludes
in interfaceProxyConfiguration
-
getUsername
Description copied from interface:ProxyConfiguration
Returns the username for proxy server authentication.- Specified by:
getUsername
in interfaceProxyConfiguration
-
getPassword
Description copied from interface:ProxyConfiguration
Returns thr password for proxy server authentication.- Specified by:
getPassword
in interfaceProxyConfiguration
-
isAuthenticationRequired
public boolean isAuthenticationRequired()Description copied from interface:ProxyConfiguration
Returntrue
if the proxy server required authentication.- Specified by:
isAuthenticationRequired
in interfaceProxyConfiguration
-