java.lang.Object
org.eclipse.jetty.client.ProxyConfiguration.Proxy
- Direct Known Subclasses:
HttpProxy,Socks4Proxy
- Enclosing class:
ProxyConfiguration
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProxy(Origin.Address address, boolean secure, org.eclipse.jetty.util.ssl.SslContextFactory.Client sslContextFactory, Origin.Protocol protocol) protected -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.util.ssl.SslContextFactory.ClientgetURI()booleanisSecure()booleanMatches the givenoriginwith the included and excluded addresses, returning true if the givenoriginis to be proxied.abstract org.eclipse.jetty.io.ClientConnectionFactorynewClientConnectionFactory(org.eclipse.jetty.io.ClientConnectionFactory connectionFactory) toString()
-
Constructor Details
-
Proxy
protected Proxy(Origin.Address address, boolean secure, org.eclipse.jetty.util.ssl.SslContextFactory.Client sslContextFactory, Origin.Protocol protocol) -
Proxy
protected Proxy(Origin origin, org.eclipse.jetty.util.ssl.SslContextFactory.Client sslContextFactory)
-
-
Method Details
-
getOrigin
-
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 org.eclipse.jetty.util.ssl.SslContextFactory.Client getSslContextFactory()- Returns:
- the optional SslContextFactory to use when connecting to proxies
-
getProtocol
- Returns:
- the protocol spoken by this proxy
-
getIncludedAddresses
- Returns:
- the set of origins that must be proxied
- See Also:
-
getExcludedAddresses
- Returns:
- the set of origins that must not be proxied.
- See Also:
-
getURI
- Returns:
- an URI representing this proxy, or null if no URI can represent this proxy
-
matches
Matches the givenoriginwith the included and excluded addresses, returning true if the givenoriginis to be proxied.- Parameters:
origin- the origin to test for proxying- Returns:
- true if the origin must be proxied, false otherwise
-
newClientConnectionFactory
public abstract org.eclipse.jetty.io.ClientConnectionFactory newClientConnectionFactory(org.eclipse.jetty.io.ClientConnectionFactory connectionFactory) - Parameters:
connectionFactory- the nestedClientConnectionFactory- Returns:
- a new
ClientConnectionFactoryfor this Proxy
-
toString
-