org.apache.cocoon.mail
Class MailCtPref

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

public class MailCtPref
extends Object
implements ContentTypePreference

A simple MimePart preference selecting algorithm

Since:
26 October 2002
Version:
$Id: MailCtPref.html 1304280 2012-03-23 11:18:01Z ilgrosso $

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-2008 The Apache Software Foundation. All Rights Reserved.