Package rs.jerseyclient.util
Class ProxyConfig
java.lang.Object
rs.jerseyclient.util.ProxyConfig
Proxy configuration
- Author:
- ralph
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ProxyConfig(String proxyHost, int proxyPort) Constructor.ProxyConfig(String proxyHost, int proxyPort, String username, String password) Constructor for authenticated proxy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the password.Returns the proxyHost.intReturns the proxyPort.Returns the username.voidsetPassword(String password) Sets the password.voidsetProxyHost(String proxyHost) Sets the proxyHost.voidsetProxyPort(int proxyPort) Sets the proxyPort.voidsetUsername(String username) Sets the username.
-
Constructor Details
-
ProxyConfig
public ProxyConfig()Default constructor. -
ProxyConfig
Constructor.- Parameters:
proxyHost- - the proxy hostproxyPort- - the proxy port (usually 8080)
-
ProxyConfig
Constructor for authenticated proxy.- Parameters:
proxyHost- - the proxy hostproxyPort- - the proxy port (usually 8080)username- - proxy usernamepassword- - proxy password
-
-
Method Details
-
getProxyHost
Returns the proxyHost.- Returns:
- the proxyHost
-
setProxyHost
Sets the proxyHost.- Parameters:
proxyHost- the proxyHost to set
-
getProxyPort
public int getProxyPort()Returns the proxyPort.- Returns:
- the proxyPort
-
setProxyPort
public void setProxyPort(int proxyPort) Sets the proxyPort.- Parameters:
proxyPort- the proxyPort to set
-
getUsername
Returns the username.- Returns:
- the username
-
setUsername
Sets the username.- Parameters:
username- the username to set
-
getPassword
Returns the password.- Returns:
- the password
-
setPassword
Sets the password.- Parameters:
password- the password to set
-