Package com.sas.lsaf.client
Class ProxyInfo
java.lang.Object
com.sas.lsaf.client.ProxyInfo
Simple information holder that contains the necessary information to connect to a proxy server.
- Since:
- 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a proxy server information holder containing the proxy server connection parameters.Constructs a proxy server information holder containing the proxy server connection parameters as well as the credentials required to connect. -
Method Summary
Modifier and TypeMethodDescriptionReturns the proxy server host to use when establishing aClientSession.Returns the proxy server password to use when establishing aClientSession.intReturns the proxy server port to use when establishing aClientSession.Returns the proxy server user id to use when establishing aClientSession.voidsetProxyHost(String proxyHost) Set the proxy server host to use when establishing aClientSession.voidsetProxyPassword(String proxyPassword) Set the proxy server password to use when establishing aClientSession.voidsetProxyPort(int proxyPort) Set the proxy server port to use when establishing aClientSession.voidsetProxyUserId(String proxyUserId) Set the proxy server user id to use when establishing aClientSession.
-
Constructor Details
-
ProxyInfo
Constructs a proxy server information holder containing the proxy server connection parameters.- Parameters:
proxyHost- the proxy server host name (IP or DNS name)proxyPort- the proxy server port
-
ProxyInfo
Constructs a proxy server information holder containing the proxy server connection parameters as well as the credentials required to connect. This constructor should only be used if the proxy server requires authentication.- Parameters:
proxyHost- the proxy server host name (IP or DNS name)proxyPort- the proxy server portproxyUserId- the proxy server user id if the proxy server requires authenticationproxyPassword- the proxy server password if the proxy server requires authentication
-
-
Method Details
-
getProxyHost
Returns the proxy server host to use when establishing aClientSession.- Returns:
- the proxy server host
-
setProxyHost
Set the proxy server host to use when establishing aClientSession.- Parameters:
proxyHost- the proxy host name (IP or DNS name).
-
getProxyPort
public int getProxyPort()Returns the proxy server port to use when establishing aClientSession.- Returns:
- the proxy server port
-
setProxyPort
public void setProxyPort(int proxyPort) Set the proxy server port to use when establishing aClientSession.- Parameters:
proxyPort- the proxy server port
-
getProxyUserId
Returns the proxy server user id to use when establishing aClientSession.- Returns:
- the proxy server user id
-
setProxyUserId
Set the proxy server user id to use when establishing aClientSession. This is required only when the proxy server is configured to require authentication.- Parameters:
proxyUserId- the proxy server user id
-
getProxyPassword
Returns the proxy server password to use when establishing aClientSession.- Returns:
- the proxy server password
-
setProxyPassword
Set the proxy server password to use when establishing aClientSession. This is required only when the proxy server is configured to require authentication.- Parameters:
proxyPassword- the proxy server password
-