Package org.eclipse.jetty.client
Class ProxyConfiguration.Proxy
java.lang.Object
org.eclipse.jetty.client.ProxyConfiguration.Proxy
- Direct Known Subclasses:
HttpProxy,Socks4Proxy
- Enclosing class:
ProxyConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Origin.Addressprivate final booleanprivate final SslContextFactory.Client -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProxy(Origin.Address address, boolean secure) privateProxy(Origin.Address address, boolean secure, SslContextFactory.Client sslContextFactory) protectedProxy(Origin.Address address, SslContextFactory.Client sslContextFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetURI()booleanisSecure()booleanMatches the givenoriginwith the included and excluded addresses, returning true if the givenoriginis to be proxied.private booleanmatches(Origin.Address address, String pattern) abstract ClientConnectionFactorynewClientConnectionFactory(ClientConnectionFactory connectionFactory) toString()
-
Field Details
-
included
-
excluded
-
address
-
secure
private final boolean secure -
sslContextFactory
-
-
Constructor Details
-
Proxy
-
Proxy
-
Proxy
-
-
Method Details
-
getAddress
- Returns:
- the address of this proxy
-
isSecure
public boolean isSecure()- Returns:
- whether the connection to the proxy must be secured via TLS
-
getSslContextFactory
- Returns:
- the optional SslContextFactory to use when connecting to proxies
-
getIncludedAddresses
- Returns:
- the list of origins that must be proxied
- See Also:
-
getExcludedAddresses
- Returns:
- the list 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
-
matches
-
newClientConnectionFactory
public abstract ClientConnectionFactory newClientConnectionFactory(ClientConnectionFactory connectionFactory) - Parameters:
connectionFactory- the nestedClientConnectionFactory- Returns:
- a new
ClientConnectionFactoryfor thisProxyConfiguration.Proxy
-
toString
-