net.fortuna.mstor.util
Class MessageUtils

java.lang.Object
  extended by net.fortuna.mstor.util.MessageUtils

public final class MessageUtils
extends java.lang.Object

Author:
Ben
 $Id$

 Created on 22/01/2009
 

Method Summary
static javax.mail.Flags.Flag getFlag(java.lang.String flagName)
           
static java.lang.String getFlagName(javax.mail.Flags.Flag flag)
           
static java.lang.String getMessageId(javax.mail.Message message)
          Returns an appropriate message identifier for the specified message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFlag

public static javax.mail.Flags.Flag getFlag(java.lang.String flagName)
Parameters:
flagName -
Returns:

getFlagName

public static java.lang.String getFlagName(javax.mail.Flags.Flag flag)
Parameters:
flag -
Returns:

getMessageId

public static java.lang.String getMessageId(javax.mail.Message message)
                                     throws javax.mail.MessagingException
Returns an appropriate message identifier for the specified message.

Parameters:
message -
Returns:
Throws:
javax.mail.MessagingException


Copyright © 2004-2011 Micronode. All Rights Reserved.