Class WebProxy


  • public class WebProxy
    extends Object
    WebProxy is used for setting proxy details for proxy authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
    • Constructor Detail

      • WebProxy

        public WebProxy​(String host,
                        int port)
        Initializes a new instance to use specified proxy details.
        Parameters:
        host - proxy host.
        port - proxy port.
      • WebProxy

        public WebProxy​(String host)
        Initializes a new instance to use specified proxy with default port 80.
        Parameters:
        host - proxy host.
      • WebProxy

        public WebProxy​(String host,
                        WebProxyCredentials credentials)
        Initializes a new instance to use specified proxy with default port 80.
        Parameters:
        host - proxy host.
        credentials - the credential to use for the proxy.
      • WebProxy

        public WebProxy​(String host,
                        int port,
                        WebProxyCredentials credentials)
        Initializes a new instance to use specified proxy details.
        Parameters:
        host - proxy host.
        port - proxy port.
        credentials - the credential to use for the proxy.