org.mmbase.applications.media.filters
Class ServerFormatSorter

java.lang.Object
  extended byorg.mmbase.applications.media.filters.Sorter
      extended byorg.mmbase.applications.media.filters.PreferenceSorter
          extended byorg.mmbase.applications.media.filters.ServerFormatSorter
All Implemented Interfaces:
java.util.Comparator, Filter

public class ServerFormatSorter
extends PreferenceSorter

Sorts on format of the source, preferred formats can be can be configured with the filters.xml. This is called 'server' formatsorter, because this preference is configured on the server, rather then on the client, which is another logical option (which can be combined with this one).

Version:
$Id: ServerFormatSorter.java,v 1.6 2003/07/15 12:50:24 vpro Exp $
Author:
Michiel Meeuwissen
See Also:
ClientFormatSorter

Field Summary
static java.lang.String CONFIG_TAG
           
static java.lang.String FORMAT_ATT
           
protected  java.util.List preferredFormats
           
 
Constructor Summary
ServerFormatSorter()
           
 
Method Summary
 void configure(XMLBasicReader reader, org.w3c.dom.Element el)
           
protected  int getPreference(URLComposer ri)
          Implement a preference for this URLComposer
 
Methods inherited from class org.mmbase.applications.media.filters.PreferenceSorter
compareURLComposer
 
Methods inherited from class org.mmbase.applications.media.filters.Sorter
compare, filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

CONFIG_TAG

public static final java.lang.String CONFIG_TAG
See Also:
Constant Field Values

FORMAT_ATT

public static final java.lang.String FORMAT_ATT
See Also:
Constant Field Values

preferredFormats

protected java.util.List preferredFormats
Constructor Detail

ServerFormatSorter

public ServerFormatSorter()
Method Detail

configure

public void configure(XMLBasicReader reader,
                      org.w3c.dom.Element el)
Specified by:
configure in interface Filter
Overrides:
configure in class Sorter

getPreference

protected int getPreference(URLComposer ri)
Description copied from class: PreferenceSorter
Implement a preference for this URLComposer

Specified by:
getPreference in class PreferenceSorter


MMBase build 1.7.4.20050922