org.apache.cocoon.mail
Class MimeMessageUtil

java.lang.Object
  extended by org.apache.cocoon.mail.MimeMessageUtil

public class MimeMessageUtil
extends Object

Description of the Class

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

Field Summary
static String NO_SUBJECT
          Description of the Field
static String SENDER_NOT_AVAILABLE
          Description of the Field
 
Constructor Summary
MimeMessageUtil()
           
 
Method Summary
static MimePart[] flattenMessage(MimeMessage message, ContentTypePreference ctPref)
          Description of the Method
static Date getDate(MimeMessage msg)
          Gets the date attribute of the MimeMessageUtil class
static String getID(MimeMessage msg)
          Gets the iD attribute of the MimeMessageUtil class
static String getSender(MimeMessage msg)
          Gets the sender attribute of the MimeMessageUtil class
static String getSenderEmail(MimeMessage msg)
          Gets the senderEmail attribute of the MimeMessageUtil class
static String getSubject(MimeMessage msg)
          Gets the subject attribute of the MimeMessageUtil class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SENDER_NOT_AVAILABLE

public static final String SENDER_NOT_AVAILABLE
Description of the Field

See Also:
Constant Field Values

NO_SUBJECT

public static final String NO_SUBJECT
Description of the Field

See Also:
Constant Field Values
Constructor Detail

MimeMessageUtil

public MimeMessageUtil()
Method Detail

getSender

public static String getSender(MimeMessage msg)
Gets the sender attribute of the MimeMessageUtil class

Parameters:
msg - Description of the Parameter
Returns:
The sender value

getSenderEmail

public static String getSenderEmail(MimeMessage msg)
Gets the senderEmail attribute of the MimeMessageUtil class

Parameters:
msg - Description of the Parameter
Returns:
The senderEmail value

getSubject

public static String getSubject(MimeMessage msg)
Gets the subject attribute of the MimeMessageUtil class

Parameters:
msg - Description of the Parameter
Returns:
The subject value

getDate

public static Date getDate(MimeMessage msg)
Gets the date attribute of the MimeMessageUtil class

Parameters:
msg - Description of the Parameter
Returns:
The date value

getID

public static String getID(MimeMessage msg)
Gets the iD attribute of the MimeMessageUtil class

Parameters:
msg - Description of the Parameter
Returns:
The iD value

flattenMessage

public static MimePart[] flattenMessage(MimeMessage message,
                                        ContentTypePreference ctPref)
Description of the Method

Parameters:
message - Description of the Parameter
ctPref - Description of the Parameter
Returns:
Description of the Return Value


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