Package com.boomi.connector.testutil
Class SimpleAtomProxyConfig
- java.lang.Object
-
- com.boomi.connector.testutil.SimpleAtomProxyConfig
-
- All Implemented Interfaces:
AtomProxyConfig
public class SimpleAtomProxyConfig extends Object implements AtomProxyConfig
Simple implementation of AtomProxyConfig
-
-
Constructor Summary
Constructors Constructor Description SimpleAtomProxyConfig()SimpleAtomProxyConfig(String proxyHost)SimpleAtomProxyConfig(String proxyHost, String proxyPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<String>getNonProxyHosts()Getter for the non-proxy hosts.StringgetNonProxyHostsString()Getter for the "raw" string value of the non-proxy hosts config.StringgetProxyHost()Getter for the configured proxy hostStringgetProxyPassword()Getter for the configured proxy password.StringgetProxyPort()Getter for the configured proxy portStringgetProxyUser()Getter for the configured proxy userbooleanisAuthenticationEnabled()Indicates if authentication is required for this proxy.booleanisProxyEnabled()Indicates if a proxy has been configured for this containerSimpleAtomProxyConfigwithNonProxyHosts(String nonProxyHosts)Setter for configured non-proxy hostsSimpleAtomProxyConfigwithProxyPassword(String proxyPassword)Setter for configured proxy passwordSimpleAtomProxyConfigwithProxyUser(String proxyUser)Setter for configured proxy user
-
-
-
Method Detail
-
withProxyUser
public SimpleAtomProxyConfig withProxyUser(String proxyUser)
Setter for configured proxy user- Parameters:
proxyUser- Atom proxy user configuration value- Returns:
- this
-
withNonProxyHosts
public SimpleAtomProxyConfig withNonProxyHosts(String nonProxyHosts)
Setter for configured non-proxy hosts- Parameters:
nonProxyHosts- Atom non-proxy hosts configuration value- Returns:
- this
-
withProxyPassword
public SimpleAtomProxyConfig withProxyPassword(String proxyPassword)
Setter for configured proxy password- Parameters:
proxyPassword- Atom proxy password configuration value- Returns:
- this
-
isProxyEnabled
public boolean isProxyEnabled()
Description copied from interface:AtomProxyConfigIndicates if a proxy has been configured for this container- Specified by:
isProxyEnabledin interfaceAtomProxyConfig- Returns:
- true if a proxy is configured, false otherwise
-
isAuthenticationEnabled
public boolean isAuthenticationEnabled()
Description copied from interface:AtomProxyConfigIndicates if authentication is required for this proxy.- Specified by:
isAuthenticationEnabledin interfaceAtomProxyConfig- Returns:
- true if the user name is not "blank", false otherwise
-
getProxyHost
public String getProxyHost()
Description copied from interface:AtomProxyConfigGetter for the configured proxy host- Specified by:
getProxyHostin interfaceAtomProxyConfig- Returns:
- the proxy host
-
getProxyPort
public String getProxyPort()
Description copied from interface:AtomProxyConfigGetter for the configured proxy port- Specified by:
getProxyPortin interfaceAtomProxyConfig- Returns:
- the proxy port
-
getProxyUser
public String getProxyUser()
Description copied from interface:AtomProxyConfigGetter for the configured proxy user- Specified by:
getProxyUserin interfaceAtomProxyConfig- Returns:
- the proxy user
-
getProxyPassword
public String getProxyPassword()
Description copied from interface:AtomProxyConfigGetter for the configured proxy password. The returned password will be decrypted.- Specified by:
getProxyPasswordin interfaceAtomProxyConfig- Returns:
- the proxy password
-
getNonProxyHostsString
public String getNonProxyHostsString()
Description copied from interface:AtomProxyConfigGetter for the "raw" string value of the non-proxy hosts config.- Specified by:
getNonProxyHostsStringin interfaceAtomProxyConfig- Returns:
- the non proxy host string
-
getNonProxyHosts
public Iterable<String> getNonProxyHosts()
Description copied from interface:AtomProxyConfigGetter for the non-proxy hosts. This method assumes the configured value is '|' delimited.- Specified by:
getNonProxyHostsin interfaceAtomProxyConfig- Returns:
- the non-proxy hosts if the config value is not "blank", empty iterable otherwise
-
-