Class ProxyMappings.ProxyMapping

    • Constructor Detail

      • ProxyMapping

        public ProxyMapping​(Pattern hostnamePattern,
                            org.apache.http.HttpHost proxyHost,
                            org.apache.http.auth.UsernamePasswordCredentials proxyCredentials)
    • Method Detail

      • getHostnamePattern

        public Pattern getHostnamePattern()
      • getProxyHost

        public org.apache.http.HttpHost getProxyHost()
      • getProxyCredentials

        public org.apache.http.auth.UsernamePasswordCredentials getProxyCredentials()
      • matches

        public boolean matches​(String hostname)
      • valueOf

        public static ProxyMappings.ProxyMapping valueOf​(String mapping)
        Parses a mapping string into an ProxyMappings.ProxyMapping.

        A proxy mapping string must have the following format: hostnameRegex;www-proxy-uri with semicolon as a delimiter.

        If no proxy should be used for a host pattern then use NO_PROXY as www-proxy-uri.



        mapping -