Class ProxyConfiguration.Proxy

java.lang.Object
org.eclipse.jetty.client.ProxyConfiguration.Proxy
Direct Known Subclasses:
HttpProxy, Socks4Proxy, Socks5Proxy
Enclosing class:
ProxyConfiguration

public abstract static class ProxyConfiguration.Proxy extends Object
  • Constructor Details

  • Method Details

    • getOrigin

      public Origin getOrigin()
    • getAddress

      public Origin.Address getAddress()
      Returns:
      the address of this proxy
    • isSecure

      public boolean isSecure()
      Returns:
      whether the connection to the proxy must be secured via TLS
    • getSslContextFactory

      public SslContextFactory.Client getSslContextFactory()
      Returns:
      the optional SslContextFactory to use when connecting to proxies
    • getProtocol

      public Origin.Protocol getProtocol()
      Returns:
      the protocol spoken by this proxy
    • getIncludedAddresses

      public Set<String> getIncludedAddresses()
      Returns:
      the list of origins that must be proxied
      See Also:
    • getExcludedAddresses

      public Set<String> getExcludedAddresses()
      Returns:
      the list of origins that must not be proxied.
      See Also:
    • getURI

      public URI getURI()
      Returns:
      an URI representing this proxy, or null if no URI can represent this proxy
    • matches

      public boolean matches(Origin origin)
      Matches the given origin with the included and excluded addresses, returning true if the given origin is to be proxied.
      Parameters:
      origin - the origin to test for proxying
      Returns:
      true if the origin must be proxied, false otherwise
    • newClientConnectionFactory

      public abstract ClientConnectionFactory newClientConnectionFactory(ClientConnectionFactory connectionFactory)
      Parameters:
      connectionFactory - the nested ClientConnectionFactory
      Returns:
      a new ClientConnectionFactory for this Proxy
    • toString

      public String toString()
      Overrides:
      toString in class Object