org.mmbase.applications.media.filters
Class MainFilter

java.lang.Object
  extended by org.mmbase.applications.media.filters.MainFilter

public class MainFilter
extends Object

This is the main class for the filter process. It maintains list of Filters (which can be configured in the 'filters.xml' configuration file). It does not do any filtering itself, it is only to access to the actual filters, so filtering is completely configurable. Since there can be only one 'main' filter this class is a Singleton, and its one instance can be gotten by the #getInstance() function (and this is done by Media builders when they need url representations to the stream they describe).

Author:
Rob Vermeulen (VPRO), Michiel Meeuwissen

Field Summary
static String CHAIN_TAG
           
static String CONFIG_FILE
           
static String FILTER_ATT
           
static String FILTER_TAG
           
static String FILTERCONFIG_TAG
           
static String FILTERCONFIGS_TAG
           
static String ID_ATT
           
static String MAIN_TAG
           
 
Method Summary
 List<URLComposer> filter(List<URLComposer> urls)
          Perform the actual filter task
static MainFilter getInstance()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_TAG

public static final String MAIN_TAG
See Also:
Constant Field Values

FILTERCONFIGS_TAG

public static final String FILTERCONFIGS_TAG
See Also:
Constant Field Values

FILTERCONFIG_TAG

public static final String FILTERCONFIG_TAG
See Also:
Constant Field Values

CHAIN_TAG

public static final String CHAIN_TAG
See Also:
Constant Field Values

FILTER_TAG

public static final String FILTER_TAG
See Also:
Constant Field Values

FILTER_ATT

public static final String FILTER_ATT
See Also:
Constant Field Values

ID_ATT

public static final String ID_ATT
See Also:
Constant Field Values

CONFIG_FILE

public static final String CONFIG_FILE
See Also:
Constant Field Values
Method Detail

getInstance

public static MainFilter getInstance()

filter

public List<URLComposer> filter(List<URLComposer> urls)
Perform the actual filter task


main

public static void main(String[] args)


MMBase 2.0-SNAPSHOT - null