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.String
getNonProxyHostsString()
Getter for the "raw" string value of the non-proxy hosts config.String
getProxyHost()
Getter for the configured proxy hostString
getProxyPassword()
Getter for the configured proxy password.String
getProxyPort()
Getter for the configured proxy portString
getProxyUser()
Getter for the configured proxy userboolean
isAuthenticationEnabled()
Indicates if authentication is required for this proxy.boolean
isProxyEnabled()
Indicates if a proxy has been configured for this containerSimpleAtomProxyConfig
withNonProxyHosts(String nonProxyHosts)
Setter for configured non-proxy hostsSimpleAtomProxyConfig
withProxyPassword(String proxyPassword)
Setter for configured proxy passwordSimpleAtomProxyConfig
withProxyUser(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:AtomProxyConfig
Indicates if a proxy has been configured for this container- Specified by:
isProxyEnabled
in interfaceAtomProxyConfig
- Returns:
- true if a proxy is configured, false otherwise
-
isAuthenticationEnabled
public boolean isAuthenticationEnabled()
Description copied from interface:AtomProxyConfig
Indicates if authentication is required for this proxy.- Specified by:
isAuthenticationEnabled
in interfaceAtomProxyConfig
- Returns:
- true if the user name is not "blank", false otherwise
-
getProxyHost
public String getProxyHost()
Description copied from interface:AtomProxyConfig
Getter for the configured proxy host- Specified by:
getProxyHost
in interfaceAtomProxyConfig
- Returns:
- the proxy host
-
getProxyPort
public String getProxyPort()
Description copied from interface:AtomProxyConfig
Getter for the configured proxy port- Specified by:
getProxyPort
in interfaceAtomProxyConfig
- Returns:
- the proxy port
-
getProxyUser
public String getProxyUser()
Description copied from interface:AtomProxyConfig
Getter for the configured proxy user- Specified by:
getProxyUser
in interfaceAtomProxyConfig
- Returns:
- the proxy user
-
getProxyPassword
public String getProxyPassword()
Description copied from interface:AtomProxyConfig
Getter for the configured proxy password. The returned password will be decrypted.- Specified by:
getProxyPassword
in interfaceAtomProxyConfig
- Returns:
- the proxy password
-
getNonProxyHostsString
public String getNonProxyHostsString()
Description copied from interface:AtomProxyConfig
Getter for the "raw" string value of the non-proxy hosts config.- Specified by:
getNonProxyHostsString
in interfaceAtomProxyConfig
- Returns:
- the non proxy host string
-
getNonProxyHosts
public Iterable<String> getNonProxyHosts()
Description copied from interface:AtomProxyConfig
Getter for the non-proxy hosts. This method assumes the configured value is '|' delimited.- Specified by:
getNonProxyHosts
in interfaceAtomProxyConfig
- Returns:
- the non-proxy hosts if the config value is not "blank", empty iterable otherwise
-
-