java.lang.Object
java.lang.Record
io.helidon.webclient.api.ConnectionKey
- Record Components:
scheme- uri address schemehost- uri address hostport- uri address portreadTimeout- SO read timeouttls- TLS to be used in connectiondnsResolver- DNS resolver to be useddnsAddressLookup- DNS address lookup strategyproxy- Proxy server to use for outgoing requests
public record ConnectionKey(String scheme, String host, int port, Duration readTimeout, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy)
extends Record
Connection key instance contains all needed connection related information.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionKey(String scheme, String host, int port, Duration readTimeout, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Creates an instance of aConnectionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thednsAddressLookuprecord component.Returns the value of thednsResolverrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.intport()Returns the value of theportrecord component.proxy()Returns the value of theproxyrecord component.Returns the value of thereadTimeoutrecord component.scheme()Returns the value of theschemerecord component.tls()Returns the value of thetlsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionKey
public ConnectionKey(String scheme, String host, int port, Duration readTimeout, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Creates an instance of aConnectionKeyrecord class.- Parameters:
scheme- the value for theschemerecord componenthost- the value for thehostrecord componentport- the value for theportrecord componentreadTimeout- the value for thereadTimeoutrecord componenttls- the value for thetlsrecord componentdnsResolver- the value for thednsResolverrecord componentdnsAddressLookup- the value for thednsAddressLookuprecord componentproxy- the value for theproxyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
readTimeout
Returns the value of thereadTimeoutrecord component.- Returns:
- the value of the
readTimeoutrecord component
-
tls
Returns the value of thetlsrecord component.- Returns:
- the value of the
tlsrecord component
-
dnsResolver
Returns the value of thednsResolverrecord component.- Returns:
- the value of the
dnsResolverrecord component
-
dnsAddressLookup
Returns the value of thednsAddressLookuprecord component.- Returns:
- the value of the
dnsAddressLookuprecord component
-
proxy
Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-