org.mmbase.applications.media.filters
Class ServerDimensionSorter

java.lang.Object
  extended by org.mmbase.applications.media.filters.Sorter
      extended by org.mmbase.applications.media.filters.PreferenceSorter
          extended by org.mmbase.applications.media.filters.ServerDimensionSorter
All Implemented Interfaces:
Comparator<URLComposer>, Filter

public class ServerDimensionSorter
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: ServerDimensionSorter.java 38540 2009-09-09 22:30:00Z michiel $
Author:
Michiel Meeuwissen
See Also:
ClientFormatSorter

Field Summary
static String CONFIG_TAG
           
static String FORMAT_ATT
           
protected  List<Dimension> preferredDimensions
           
 
Constructor Summary
ServerDimensionSorter()
           
 
Method Summary
 void configure(DocumentReader reader, Element parent)
          Configure with setters on default
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 String CONFIG_TAG
See Also:
Constant Field Values

FORMAT_ATT

public static final String FORMAT_ATT
See Also:
Constant Field Values

preferredDimensions

protected final List<Dimension> preferredDimensions
Constructor Detail

ServerDimensionSorter

public ServerDimensionSorter()
Method Detail

configure

public void configure(DocumentReader reader,
                      Element parent)
Description copied from class: Sorter
Configure with setters on default

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 2.0-SNAPSHOT - null