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 interfacestatic interfacestatic enumProxy Type.static interface -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProxyHandler(Channel channel) static ProxyProvider.TypeSpecbuilder()Creates a builder forProxyProvider.booleanfinal Supplier<? extends InetSocketAddress>Deprecated.as of 1.2.0.final Predicate<SocketAddress>A predicatePredicateonSocketAddressthat returns true when the provided address should be reached directly, bypassing the proxy.final SocketAddressThe address to connect to.final Supplier<? extends SocketAddress>The supplier for the address to connect to.final ProxyProvider.ProxygetType()The proxy type.inthashCode()final ProxyHandlerReturn a new eventualProxyHandler.booleanshouldProxy(@Nullable SocketAddress address) Returns true when the givenSocketAddressshould 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 predicatePredicateonSocketAddressthat returns true when the provided address should be reached directly, bypassing the proxy.- Returns:
- The predicate
Predicateto test the incomingSocketAddressif 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 givenSocketAddressshould 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
InetSocketAddressand hostname candidate to proxy
-
addProxyHandler
-
toString
-
equals
-
hashCode
public int hashCode()
-