org.mmbase.applications.media.filters
Class ClientFormatSorter

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.ClientFormatSorter
All Implemented Interfaces:
Comparator<URLComposer>, Filter

public class ClientFormatSorter
extends PreferenceSorter

Client's preferred format can be different for every request. This Sorter uses the 'info' Map to sort the requested formats to the top of the urlcomposer list.

Version:
$Id: ClientFormatSorter.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
ClientFormatSorter()
           
 
Method Summary
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, configure, 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
 

Constructor Detail

ClientFormatSorter

public ClientFormatSorter()
Method Detail

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