public abstract static class ProxyConfiguration.Proxy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Origin.Address |
address |
private java.util.Set<java.lang.String> |
excluded |
private java.util.Set<java.lang.String> |
included |
private boolean |
secure |
private SslContextFactory.Client |
sslContextFactory |
Modifier | Constructor and Description |
---|---|
protected |
Proxy(Origin.Address address,
boolean secure) |
private |
Proxy(Origin.Address address,
boolean secure,
SslContextFactory.Client sslContextFactory) |
protected |
Proxy(Origin.Address address,
SslContextFactory.Client sslContextFactory) |
Modifier and Type | Method and Description |
---|---|
Origin.Address |
getAddress() |
java.util.Set<java.lang.String> |
getExcludedAddresses() |
java.util.Set<java.lang.String> |
getIncludedAddresses() |
SslContextFactory.Client |
getSslContextFactory() |
java.net.URI |
getURI() |
boolean |
isSecure() |
private boolean |
matches(Origin.Address address,
java.lang.String pattern) |
boolean |
matches(Origin origin)
Matches the given
origin with the included and excluded addresses,
returning true if the given origin is to be proxied. |
abstract ClientConnectionFactory |
newClientConnectionFactory(ClientConnectionFactory connectionFactory) |
java.lang.String |
toString() |
private final java.util.Set<java.lang.String> included
private final java.util.Set<java.lang.String> excluded
private final Origin.Address address
private final boolean secure
private final SslContextFactory.Client sslContextFactory
protected Proxy(Origin.Address address, boolean secure)
protected Proxy(Origin.Address address, SslContextFactory.Client sslContextFactory)
private Proxy(Origin.Address address, boolean secure, SslContextFactory.Client sslContextFactory)
public Origin.Address getAddress()
public boolean isSecure()
public SslContextFactory.Client getSslContextFactory()
public java.util.Set<java.lang.String> getIncludedAddresses()
matches(Origin)
,
getExcludedAddresses()
public java.util.Set<java.lang.String> getExcludedAddresses()
matches(Origin)
,
getIncludedAddresses()
public java.net.URI getURI()
public boolean matches(Origin origin)
origin
with the included and excluded addresses,
returning true if the given origin
is to be proxied.origin
- the origin to test for proxyingprivate boolean matches(Origin.Address address, java.lang.String pattern)
public abstract ClientConnectionFactory newClientConnectionFactory(ClientConnectionFactory connectionFactory)
connectionFactory
- the nested ClientConnectionFactory
ClientConnectionFactory
for this ProxyConfiguration.Proxy
public java.lang.String toString()
toString
in class java.lang.Object