org.apache.cocoon.mail
Class MailCtPref

java.lang.Object
  extended by org.apache.cocoon.mail.MailCtPref
All Implemented Interfaces:
ContentTypePreference

public class MailCtPref
extends Object
implements ContentTypePreference

A simple MimePart preference selecting algorithm

Since:
26. Oktober 2002
Version:
$Id: MailCtPref.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Bernhard Huber

Constructor Summary
MailCtPref()
           
 
Method Summary
 int preference(MimePart part)
          Yield preference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailCtPref

public MailCtPref()
Method Detail

preference

public int preference(MimePart part)
Yield preference

Specified by:
preference in interface ContentTypePreference
Parameters:
part - Examine the content of this part
Returns:
preference, a higher preference value signals higher preference, eg. a part evaluating preference 10, signals preference over a part evaluating preference of 5


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.