Package org.jclouds.proxy.internal
Class GuiceProxyConfig
- java.lang.Object
-
- org.jclouds.proxy.internal.GuiceProxyConfig
-
- All Implemented Interfaces:
ProxyConfig
@Singleton public class GuiceProxyConfig extends Object implements ProxyConfig
Configuration derived from Guice properties.
-
-
Constructor Summary
Constructors Constructor Description GuiceProxyConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.base.Optional<Credentials>
getCredentials()
com.google.common.base.Optional<com.google.common.net.HostAndPort>
getProxy()
Returns the host and port of the proxy configured here, if there is oneProxy.Type
getType()
boolean
isJvmProxyEnabled()
String
toString()
boolean
useSystem()
-
-
-
Method Detail
-
getProxy
public com.google.common.base.Optional<com.google.common.net.HostAndPort> getProxy()
Description copied from interface:ProxyConfig
Returns the host and port of the proxy configured here, if there is one- Specified by:
getProxy
in interfaceProxyConfig
- See Also:
Constants.PROPERTY_PROXY_HOST
,Constants.PROPERTY_PROXY_PORT
-
getCredentials
public com.google.common.base.Optional<Credentials> getCredentials()
- Specified by:
getCredentials
in interfaceProxyConfig
- See Also:
Constants.PROPERTY_PROXY_USER
,Constants.PROPERTY_PROXY_PASSWORD
-
getType
public Proxy.Type getType()
- Specified by:
getType
in interfaceProxyConfig
- See Also:
Constants.PROPERTY_PROXY_TYPE
-
useSystem
public boolean useSystem()
- Specified by:
useSystem
in interfaceProxyConfig
- See Also:
Constants.PROPERTY_PROXY_SYSTEM
-
isJvmProxyEnabled
public boolean isJvmProxyEnabled()
- Specified by:
isJvmProxyEnabled
in interfaceProxyConfig
- See Also:
org.jclouds.Constants#PROPERTY_PROXY_FROM_JVM
-
-