dns://[host][:port][/[domain]] or dns:[/][domain]The host names a DNS server. If the host is not provided, it indicates that the underlying platform's DNS server(s) should be used if possible, or that "localhost" should be used otherwise. If the port is not provided, the DNS default port 53 will be used. The domain indicates the domain name of the context, and is not necessarily related to the domain of the server; if it is not provided, the root domain "." is used. Special characters in the domain name must be %-escaped as described in RFC 2396.
Modifier and Type | Field and Description |
---|---|
private static final Uri. | |
private String | |
public static final Uri. | |
private static final String |
Modifier and Type | Method and Description |
---|---|
protected boolean | checkSchemeOnly(String
the URI uri, String the scheme scheme)Overrides com. Checks whether the given uri string should be considered as a scheme-only URI. |
public static DnsUrl[] | |
public String | |
private static boolean | |
protected final boolean | isSchemeOnly(String
An URI string uri)Overrides com. A subclass of |
protected final MalformedURLException | newInvalidURISchemeException(String
the URI string uri)Overrides com. Creates a |
protected Uri. | |
private static String |
DEFAULT_PARSE_MODE | back to summary |
---|---|
private static final Uri. |
domain | back to summary |
---|---|
private String domain |
PARSE_MODE | back to summary |
---|---|
public static final Uri. |
PARSE_MODE_PROP | back to summary |
---|---|
private static final String PARSE_MODE_PROP |
DnsUrl | back to summary |
---|---|
public DnsUrl(String url) throws MalformedURLException |
checkSchemeOnly | back to summary |
---|---|
protected boolean checkSchemeOnly(String uri, String scheme) Overrides com. Doc from com. Checks whether the given uri string should be considered as a scheme-only URI. For some protocols - e.g. DNS, we might accept "dns://" as a valid URL denoting default DNS. For others - we might only accept "scheme:". |
fromList | back to summary |
---|---|
public static DnsUrl[] fromList(String urlList) throws MalformedURLException Given a space-separated list of DNS URLs, returns an array of DnsUrl objects. |
getDomain | back to summary |
---|---|
public String getDomain() Returns the domain of this URL, or "." if none is provided. Never null. |
isDnsSchemeOnly | back to summary |
---|---|
private static boolean isDnsSchemeOnly(String uri) |
isSchemeOnly | back to summary |
---|---|
protected final boolean isSchemeOnly(String uri) Overrides com. Doc from com. A subclass of |
newInvalidURISchemeException | back to summary |
---|---|
protected final MalformedURLException newInvalidURISchemeException(String uri) Overrides com. Doc from com. Creates a
|
parseMode | back to summary |
---|---|
protected Uri. Overrides com. Doc from com. The parse mode for parsing this URI.
The default is |
validateURI | back to summary |
---|---|
private static String validateURI(String uri) throws URISyntaxException |