org.mmbase.applications.media.filters
Class ServerFormatSorter
java.lang.Object
org.mmbase.applications.media.filters.Sorter
org.mmbase.applications.media.filters.PreferenceSorter
org.mmbase.applications.media.filters.ServerFormatSorter
- All Implemented Interfaces:
- Comparator<URLComposer>, 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 36047 2009-06-14 14:44:44Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
ClientFormatSorter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
preferredFormats
protected List<Format> preferredFormats
ServerFormatSorter
public ServerFormatSorter()
configure
public void configure(DocumentReader reader,
Element el)
- 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