Top Description Inners Fields Constructors Methods
reactor.netty5.transport

public Class ProxyProvider

extends Object
Class Inheritance
Imports
java.net.InetSocketAddress, .SocketAddress, java.nio.charset.Charset, java.util.Objects, .Properties, java.util.function.Function, .Predicate, .Supplier, java.util.regex.Pattern, io.netty5.channel.Channel, .ChannelPipeline, io.netty5.handler.logging.LogLevel, .LoggingHandler, io.netty.contrib.handler.proxy.ProxyHandler, .Socks4ProxyHandler, .Socks5ProxyHandler, io.netty5.util.internal.StringUtil, reactor.netty5.NettyPipeline, reactor.netty5.transport.logging.AdvancedBufferFormat, reactor.util.annotation.Nullable

Proxy configuration
Author
Violeta Georgieva

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected abstract static class
public static interface
pack-priv static class
public static interface
public static enum
protected static class
public static interface

Field Summary

Modifier and TypeField and Description
pack-priv final Supplier<? extends InetSocketAddress>
pack-priv final long
pack-priv static final LoggingHandler
pack-priv final Predicate<SocketAddress>
pack-priv final Function<? super String, ? extends String>
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv final ProxyProvider.Proxy
pack-priv final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
public static ProxyProvider.TypeSpec

Returns:

a new ProxyProvider builder
builder
()

Creates a builder for ProxyProvider

pack-priv static ProxyProvider
createFrom(Properties properties)

pack-priv static ProxyProvider
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public final Supplier<? extends InetSocketAddress>

Returns:

The supplier for the address to connect to.
getAddress
()

The supplier for the address to connect to.

protected long
public final Predicate<SocketAddress>

Returns:

The predicate Predicate to test the incoming SocketAddress if it should be reached directly, bypassing the proxy
getNonProxyHostsPredicate
()

A predicate Predicate on SocketAddress that returns true when the provided address should be reached directly, bypassing the proxy

private boolean
protected String
public final ProxyProvider.Proxy

Returns:

The proxy type
getType
()

The proxy type

protected String
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public ProxyHandler

Returns:

a new eventual ProxyHandler
newProxyHandler
()

Return a new eventual ProxyHandler

protected static int
parsePort(String port, String propertyName)

public boolean

Returns:

true if of type InetSocketAddress and hostname candidate to proxy
shouldProxy
(SocketAddress
the address to test
address
)

Returns true when the given SocketAddress should be reached via the configured proxy.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait