org.mmbase.applications.media.filters
Class ClientFormatSorter

java.lang.Object
  extended byorg.mmbase.applications.media.filters.Sorter
      extended byorg.mmbase.applications.media.filters.PreferenceSorter
          extended byorg.mmbase.applications.media.filters.ClientFormatSorter
All Implemented Interfaces:
Comparator, 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,v 1.5 2005/01/30 16:46:35 nico Exp $
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 build 1.8.1.20060716