@Singleton public class GuiceProxyConfig extends Object implements ProxyConfig
Constructor and Description |
---|
GuiceProxyConfig() |
Modifier and Type | Method and 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 one
|
Proxy.Type |
getType() |
boolean |
isJvmProxyEnabled() |
String |
toString() |
boolean |
useSystem() |
public com.google.common.base.Optional<com.google.common.net.HostAndPort> getProxy()
ProxyConfig
getProxy
in interface ProxyConfig
Constants.PROPERTY_PROXY_HOST
,
Constants.PROPERTY_PROXY_PORT
public com.google.common.base.Optional<Credentials> getCredentials()
getCredentials
in interface ProxyConfig
Constants.PROPERTY_PROXY_USER
,
Constants.PROPERTY_PROXY_PASSWORD
public Proxy.Type getType()
getType
in interface ProxyConfig
Constants.PROPERTY_PROXY_TYPE
public boolean useSystem()
useSystem
in interface ProxyConfig
Constants.PROPERTY_PROXY_SYSTEM
public boolean isJvmProxyEnabled()
isJvmProxyEnabled
in interface ProxyConfig
org.jclouds.Constants#PROPERTY_PROXY_FROM_JVM
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.