Package reactor.netty.transport
Class ProxyProvider
java.lang.Object
reactor.netty.transport.ProxyProvider
Proxy configuration.
- Author:
- Violeta Georgieva
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static enum
Proxy Type.static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProxyHandler
(Channel channel) static ProxyProvider.TypeSpec
builder()
Creates a builder forProxyProvider
.boolean
final Supplier<? extends InetSocketAddress>
Deprecated.as of 1.2.0.final Predicate<SocketAddress>
A predicatePredicate
onSocketAddress
that returns true when the provided address should be reached directly, bypassing the proxy.final SocketAddress
The address to connect to.final Supplier<? extends SocketAddress>
The supplier for the address to connect to.final ProxyProvider.Proxy
getType()
The proxy type.int
hashCode()
final ProxyHandler
Return a new eventualProxyHandler
.boolean
shouldProxy
(@Nullable SocketAddress address) Returns true when the givenSocketAddress
should be reached via the configured proxy.toString()
-
Method Details
-
builder
Creates a builder forProxyProvider
.- Returns:
- a new ProxyProvider builder
-
getType
The proxy type.- Returns:
- The proxy type
-
getAddress
Deprecated.as of 1.2.0. Prefer usinggetSocketAddress()
. This method will be removed in 1.3.0.The supplier for the address to connect to.- Returns:
- The supplier for the address to connect to.
-
getSocketAddress
The supplier for the address to connect to.- Returns:
- The supplier for the address to connect to.
-
getProxyAddress
The address to connect to.- Returns:
- The address to connect to.
-
getNonProxyHostsPredicate
A predicatePredicate
onSocketAddress
that returns true when the provided address should be reached directly, bypassing the proxy.- Returns:
- The predicate
Predicate
to test the incomingSocketAddress
if it should be reached directly, bypassing the proxy - Since:
- 0.9.10
-
newProxyHandler
Return a new eventualProxyHandler
.- Returns:
- a new eventual
ProxyHandler
-
shouldProxy
Returns true when the givenSocketAddress
should be reached via the configured proxy. When the method returns false, the client should reach the address directly and bypass the proxy- Parameters:
address
- the address to test- Returns:
- true if of type
InetSocketAddress
and hostname candidate to proxy
-
addProxyHandler
-
toString
-
equals
-
hashCode
public int hashCode()
-