Interface Proxy


  • public interface Proxy
    Configuration data for an HTTP proxy to utilize for outbound requests using HttpClient.
    Since:
    1.8.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      The host that proxied requests will be sent.
      java.util.Collection<java.lang.String> getNonProxyHosts()
      A collection of patterns which if any or matched, the outgoing request will bypass the HTTP proxy.
      int getPort()
      The port on the proxy where proxied requests will be sent.
    • Method Detail

      • getHost

        java.lang.String getHost()
        The host that proxied requests will be sent.
        Returns:
        The host that proxied requests will be sent.
      • getPort

        int getPort()
        The port on the proxy where proxied requests will be sent.
        Returns:
        The port on the proxy where proxied requests will be sent.
      • getNonProxyHosts

        java.util.Collection<java.lang.String> getNonProxyHosts()
        A collection of patterns which if any or matched, the outgoing request will bypass the HTTP proxy.

        The format of the values in this list follow the standard Java Networking and Proxies standards.

        Returns:
        A collection of patterns which if any or matched, the outgoing request will bypass the HTTP proxy.