Package com.enterprisedt.util.proxy
Class ProxySettings
java.lang.Object
com.enterprisedt.util.proxy.ProxySettings
Settings required for using a proxy
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAddress of the proxyGet the proxy passwordintGet the proxy portGet the proxy typeGet the proxy usernameGet the public proxy address to be used if the proxy does not return one.voidsetProxyAddress(String proxyAddress) Set the address of the proxyvoidsetProxyPassword(String password) Set the proxy passwordvoidsetProxyPort(int proxyPort) Set the proxy protvoidsetProxyType(ProxyType proxyType) Set the proxy typevoidsetProxyUserName(String userName) Set the proxy usernamevoidsetPublicProxyAddress(String publicProxyAddress) Set the public proxy address to be used if the proxy does not return one.
-
Constructor Details
-
ProxySettings
public ProxySettings()
-
-
Method Details
-
getProxyAddress
Address of the proxy- Returns:
- string
-
setProxyAddress
Set the address of the proxy- Parameters:
proxyAddress-
-
getPublicProxyAddress
Get the public proxy address to be used if the proxy does not return one. -
setPublicProxyAddress
Set the public proxy address to be used if the proxy does not return one. This might be necessary for FTP active transfers, where the FTP server must connect back to the proxy.- Parameters:
publicProxyAddress- IP address or hostname
-
getProxyPort
public int getProxyPort()Get the proxy port- Returns:
- int
-
setProxyPort
public void setProxyPort(int proxyPort) Set the proxy prot- Parameters:
proxyPort-
-
getProxyUserName
Get the proxy username- Returns:
- string
-
setProxyUserName
Set the proxy username- Parameters:
userName-
-
getProxyPassword
Get the proxy password- Returns:
-
setProxyPassword
Set the proxy password- Parameters:
password-
-
getProxyType
Get the proxy type- Returns:
-
setProxyType
Set the proxy type- Parameters:
proxyType-
-