Skip to content

Most visited

Recently visited

navigation
Added in API level 1

IntentFilter.AuthorityEntry

public static final class IntentFilter.AuthorityEntry
extends Object

java.lang.Object
   ↳ android.content.IntentFilter.AuthorityEntry


This is an entry for a single authority in the Iterator returned by authoritiesIterator().

Summary

Public constructors

IntentFilter.AuthorityEntry(String host, String port)

Public methods

String getHost()
int getPort()
int match(Uri data)

Determine whether this AuthorityEntry matches the given data Uri.

Inherited methods

From class java.lang.Object

Public constructors

IntentFilter.AuthorityEntry

Added in API level 1
IntentFilter.AuthorityEntry (String host, 
                String port)

Parameters
host String
port String

Public methods

getHost

Added in API level 1
String getHost ()

Returns
String

getPort

Added in API level 1
int getPort ()

Returns
int

match

Added in API level 1
int match (Uri data)

Determine whether this AuthorityEntry matches the given data Uri. Note that this comparison is case-sensitive, unlike formal RFC host names. You thus should always normalize to lower-case.

Parameters
data Uri: The Uri to match.
Returns
int Returns either NO_MATCH_DATA, MATCH_CATEGORY_PORT, or MATCH_CATEGORY_HOST.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.