org.jboss.net.axis.transport.mailto
Class MailMessage

java.lang.Object
  extended byMimeMessage
      extended byorg.jboss.net.axis.transport.mailto.MailMessage

public class MailMessage
extends MimeMessage

Title:
JBoss.Net Email Message

Description:
This is a MimeMessage that allows a mesage ID to be manually by the sender.

See Also:
Serialized Form

Field Summary
protected  java.lang.String messageID
           
 
Constructor Summary
MailMessage(MimeMessage arg0)
           
MailMessage(Session arg0, java.io.InputStream arg1)
           
 
Method Summary
 java.lang.String getMessageID()
          Returns the current message ID.
 void setMessageID(java.lang.String id)
          Set the message ID for this message.
protected  void updateHeaders()
          If we have set our own messageID, we should use that other wise go ahead and use the one generated by javamail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageID

protected java.lang.String messageID
Constructor Detail

MailMessage

public MailMessage(MimeMessage arg0)
            throws MessagingException
Parameters:
arg0 -
Throws:
javax.mail.MessagingException
MessagingException

MailMessage

public MailMessage(Session arg0,
                   java.io.InputStream arg1)
            throws MessagingException
Parameters:
arg0 -
arg1 -
Throws:
javax.mail.MessagingException
MessagingException
Method Detail

updateHeaders

protected void updateHeaders()
                      throws MessagingException
If we have set our own messageID, we should use that other wise go ahead and use the one generated by javamail.

Throws:
MessagingException
See Also:
javax.mail.internet.MimeMessage#updateHeaders()

getMessageID

public java.lang.String getMessageID()
Returns the current message ID.


setMessageID

public void setMessageID(java.lang.String id)
Set the message ID for this message.

Parameters:
id -