Class ConnectionKey
java.lang.Object
io.helidon.webclient.api.ConnectionKey
Connection key instance contains all needed connection related information.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyServerNames(SSLParameters sslParameters) Apply effective server names to SSL parameters when first-class SNI configuration overrides the TLS defaults.static ConnectionKeycreate(ClientUri uri, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Create new instance of theConnectionKey.static ConnectionKeycreate(ClientUri uri, SniConfig sni, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy, ClientRequestHeaders headers) Create new instance of theConnectionKey.static ConnectionKeycreate(String scheme, String host, int port, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Create new instance of theConnectionKey.static ConnectionKeycreateUnixDomainSocket(ClientUri uri, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, UnixDomainSocketAddress address) Create new instance of theConnectionKeyfor a Unix domain socket transport.static ConnectionKeycreateUnixDomainSocket(ClientUri uri, SniConfig sni, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, UnixDomainSocketAddress address, ClientRequestHeaders headers) Create new instance of theConnectionKeyfor a Unix domain socket transport.static ConnectionKeycreateUnixDomainSocket(String scheme, String host, int port, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, UnixDomainSocketAddress address) Create new instance of theConnectionKeyfor a Unix domain socket transport.ConfiguredDnsAddressLookup.ConfiguredDnsResolver.booleaninthashCode()host()Uri address host.intport()Uri address port.proxy()ConfiguredProxy.scheme()Uri address scheme.tls()ConfiguredTls.Host used as the TLS peer host for SNI and endpoint identification.intPort used as the TLS peer port for endpoint identification.toString()
-
Method Details
-
create
public static ConnectionKey create(String scheme, String host, int port, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Create new instance of theConnectionKey.- Parameters:
scheme- uri address schemehost- uri address hostport- uri address porttls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyproxy- Proxy server to use for outgoing requests- Returns:
- new instance
-
create
public static ConnectionKey create(ClientUri uri, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Create new instance of theConnectionKey.- Parameters:
uri- resolved URItls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyproxy- Proxy server to use for outgoing requests- Returns:
- new instance
-
create
public static ConnectionKey create(ClientUri uri, SniConfig sni, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy, ClientRequestHeaders headers) Create new instance of theConnectionKey.- Parameters:
uri- resolved URIsni- effective SNI configurationtls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyproxy- Proxy server to use for outgoing requestsheaders- final request headers available before connection acquisition- Returns:
- new instance
-
createUnixDomainSocket
public static ConnectionKey createUnixDomainSocket(String scheme, String host, int port, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, UnixDomainSocketAddress address) Create new instance of theConnectionKeyfor a Unix domain socket transport.- Parameters:
scheme- uri address schemehost- uri address hostport- uri address porttls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyaddress- Unix domain socket transport address- Returns:
- new instance
-
createUnixDomainSocket
public static ConnectionKey createUnixDomainSocket(ClientUri uri, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, UnixDomainSocketAddress address) Create new instance of theConnectionKeyfor a Unix domain socket transport.- Parameters:
uri- resolved URItls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyaddress- Unix domain socket transport address- Returns:
- new instance
-
createUnixDomainSocket
public static ConnectionKey createUnixDomainSocket(ClientUri uri, SniConfig sni, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, UnixDomainSocketAddress address, ClientRequestHeaders headers) Create new instance of theConnectionKeyfor a Unix domain socket transport.- Parameters:
uri- resolved URIsni- effective SNI configurationtls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyaddress- Unix domain socket transport addressheaders- final request headers available before connection acquisition- Returns:
- new instance
-
scheme
-
host
-
port
public int port()Uri address port.- Returns:
- uri address port
-
tls
-
dnsResolver
-
dnsAddressLookup
ConfiguredDnsAddressLookup.- Returns:
- configured dns address lookup
-
proxy
-
tlsPeerHost
Host used as the TLS peer host for SNI and endpoint identification.- Returns:
- TLS peer host
-
tlsPeerPort
public int tlsPeerPort()Port used as the TLS peer port for endpoint identification.- Returns:
- TLS peer port
-
applyServerNames
Apply effective server names to SSL parameters when first-class SNI configuration overrides the TLS defaults.- Parameters:
sslParameters- SSL parameters to update
-
equals
-
hashCode
-
toString
-