Android APIs
public static final class

IntentFilter.AuthorityEntry

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IntentFilter.AuthorityEntry (String host, String port)

Added in API level 1

Parameters
host String
port String

Public Methods

public String getHost ()

Added in API level 1

Returns
String

public int getPort ()

Added in API level 1

Returns
int

public int match (Uri data)

Added in API level 1

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.