HttpsEndpoint
public
class
HttpsEndpoint
extends Object
| java.lang.Object | |
| ↳ | android.net.dns.HttpsEndpoint |
Class that contains the DNS records needed to connect to an HTTPS endpoint.
This includes the data from A/AAAA and HTTPS DNS queries. The response from the HTTPS query
is represented as a list of HttpsRecord sorted by SvcPriority.
This class also contains a list of InetAddress, with RFC 6724 sorting. IPv4 addresses
are included if the Network provides IPv4 connectivity, and IPv6 addresses if it provides
IPv6 connectivity. This list will come from the hints in the HTTPS record and/or from the
responses of the A/AAAA queries.
Summary
Public methods | |
|---|---|
List<HttpsRecord>
|
getHttpsRecords()
Returns the list of |
List<InetAddress>
|
getIpAddresses()
Returns the list of IP addresses from the A/AAAA/HTTPS queries. |
Inherited methods | |
|---|---|
Public methods
getHttpsRecords
public List<HttpsRecord> getHttpsRecords ()
Returns the list of HttpsRecord from the HTTPS DNS query, sorted by priority.
This list is empty if the HTTPS DNS query did not return any data, or if the HTTPS query did not return within the specified timeout.
| Returns | |
|---|---|
List<HttpsRecord> |
This value cannot be null. |
getIpAddresses
public List<InetAddress> getIpAddresses ()
Returns the list of IP addresses from the A/AAAA/HTTPS queries.
If the HTTPS query returned first, this list contains the IP hints from the HTTPS record, if present. Otherwise, this list contains the IP addresses returned from the A/AAAA queries and the HTTPS query, only if the HTTPS query returned within the specified timeout.
This list contains only IP addresses of the address families present on the specified
Network, and is sorted according to RFC 6724 if the caller has INTERNET
permission.
| Returns | |
|---|---|
List<InetAddress> |
This value cannot be null. |