HttpsEndpoint
open class HttpsEndpoint
| kotlin.Any | |
| ↳ | 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 | |
|---|---|
| open MutableList<HttpsRecord!> |
Returns the list of |
| open MutableList<InetAddress!> |
Returns the list of IP addresses from the A/AAAA/HTTPS queries. |
Public methods
getHttpsRecords
open fun getHttpsRecords(): MutableList<HttpsRecord!>
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.
| Return | |
|---|---|
MutableList<HttpsRecord!> |
This value cannot be null. |
getIpAddresses
open fun getIpAddresses(): MutableList<InetAddress!>
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.
| Return | |
|---|---|
MutableList<InetAddress!> |
This value cannot be null. |