Class ProxyConfig

java.lang.Object
rs.jerseyclient.util.ProxyConfig

public class ProxyConfig extends Object
Proxy configuration
Author:
ralph
  • Constructor Details

    • ProxyConfig

      public ProxyConfig()
      Default constructor.
    • ProxyConfig

      public ProxyConfig(String proxyHost, int proxyPort)
      Constructor.
      Parameters:
      proxyHost - - the proxy host
      proxyPort - - the proxy port (usually 8080)
    • ProxyConfig

      public ProxyConfig(String proxyHost, int proxyPort, String username, String password)
      Constructor for authenticated proxy.
      Parameters:
      proxyHost - - the proxy host
      proxyPort - - the proxy port (usually 8080)
      username - - proxy username
      password - - proxy password
  • Method Details

    • getProxyHost

      public String getProxyHost()
      Returns the proxyHost.
      Returns:
      the proxyHost
    • setProxyHost

      public void setProxyHost(String proxyHost)
      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

      public String getUsername()
      Returns the username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the username.
      Parameters:
      username - the username to set
    • getPassword

      public String getPassword()
      Returns the password.
      Returns:
      the password
    • setPassword

      public void setPassword(String password)
      Sets the password.
      Parameters:
      password - the password to set