org.mmbase.applications.media.filters
Class MainFilter

java.lang.Object
  extended byorg.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 content can be configured by the 'filters.xml' configuration file. It does not do any filtering itself, it is only the access to the actual filters, so filtering is completably 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 the 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 filter(List 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
Method Detail

getInstance

public static MainFilter getInstance()

filter

public List filter(List urls)
Perform the actual filter task


main

public static void main(String[] args)


MMBase build 1.8.1.20060716