org.dvb.internet
Class InternetServiceFilter

java.lang.Object
  |
  +--javax.tv.service.navigation.ServiceFilter
        |
        +--org.dvb.internet.InternetServiceFilter

public final class InternetServiceFilter
extends javax.tv.service.navigation.ServiceFilter

InternetServiceFilter represents a service type for a particular kind of internet client. A ServiceList resulting from this filter will include only services providing access to the specified type of internet client.


Field Summary
static int EMAIL_CLIENT
          Constant identifying an email client service
static int NEWS_CLIENT
          Constant identifying a usenet news client service
static int WWW_CLIENT
          Constant identifying a WWW client service
 
Constructor Summary
InternetServiceFilter(int service_type)
          Constructs the filter based on a particular type of internet client service.
 
Method Summary
 boolean accept(javax.tv.service.Service service)
          Tests if a particular service represents an internet client of the type specified in the constructor of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMAIL_CLIENT

public static final int EMAIL_CLIENT
Constant identifying an email client service

WWW_CLIENT

public static final int WWW_CLIENT
Constant identifying a WWW client service

NEWS_CLIENT

public static final int NEWS_CLIENT
Constant identifying a usenet news client service
Constructor Detail

InternetServiceFilter

public InternetServiceFilter(int service_type)
Constructs the filter based on a particular type of internet client service. The types of service required are those defined by the constants in this class. Support for other values is platform dependent. Platforms not supporting services of the type specified shall return an empty ServiceList when instances of this class constructed using that type are used.
Parameters:
service_type - the type of service required
Method Detail

accept

public boolean accept(javax.tv.service.Service service)
Tests if a particular service represents an internet client of the type specified in the constructor of this instance.
Overrides:
accept in class javax.tv.service.navigation.ServiceFilter
Parameters:
service - A Service to be evaluated against the filtering algorithm.
Returns:
true if service satisfies the filtering algorithm; false otherwise.