org.apache.geronimo.javamail.transport.smtp
Class SMTPMessage

java.lang.Object
  extended by javax.mail.Message
      extended by javax.mail.internet.MimeMessage
          extended by org.apache.geronimo.javamail.transport.smtp.SMTPMessage
All Implemented Interfaces:
MimePart, Part

public class SMTPMessage
extends MimeMessage


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage
MimeMessage.RecipientType
 
Field Summary
protected  boolean allow8bitMIME
           
protected  String envelopeFrom
           
protected  String mailExtension
           
static int NOTIFY_DELAY
           
static int NOTIFY_FAILURE
           
static int NOTIFY_NEVER
           
static int NOTIFY_SUCCESS
           
protected  int notifyOptions
           
static int RETURN_FULL
           
static int RETURN_HDRS
           
protected  int returnOption
           
protected  boolean sendPartial
           
protected  String submitter
           
 
Fields inherited from class javax.mail.internet.MimeMessage
content, contentStream, dh, flags, headers, modified, saved
 
Fields inherited from class javax.mail.Message
expunged, folder, msgnum, session
 
Fields inherited from interface javax.mail.Part
ATTACHMENT, INLINE
 
Constructor Summary
SMTPMessage(MimeMessage source)
          Construct an SMTPMimeMessage from another source MimeMessage object.
SMTPMessage(Session session)
          Default (and normal) constructor for an SMTPMessage.
SMTPMessage(Session session, InputStream source)
          Construct an SMTPMessage instance by reading and parsing the data from the provided InputStream.
 
Method Summary
 boolean getAllow8bitMIME()
          Retrieve the current 8bitMIME attribute.
 String getEnvelopeFrom()
          Retrieve the current evelopeFrom attribute.
 String getMailExtension()
          Retrieve the current mailExtension attribute.
 int getNotifyOptions()
          Retrieve the current notifyOptions attribute.
 int getReturnOption()
          Retrieve the current returnOption attribute.
 boolean getSendPartial()
          Retrieve the current sendPartial attribute.
 String getSubmitter()
          Retrieve the current submitter attribute.
 void setAllow8bitMIME(boolean a)
          Change the allow8BitMime attribute for the message.
 void setEnvelopeFrom(String from)
          Change the envelopeFrom attribute for the message.
 void setMailExtension(String e)
          Change the mailExtension attribute for the message.
 void setNotifyOptions(int options)
          Change the notifyOptions attribute for the message.
 void setReturnOption(int option)
          Change the returnOptions attribute for the message.
 void setSendPartial(boolean a)
          Change the sendPartial attribute for the message.
 void setSubmitter(String s)
          Change the submitter attribute for the message.
 
Methods inherited from class javax.mail.internet.MimeMessage
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeTo
 
Methods inherited from class javax.mail.Message
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFY_NEVER

public static final int NOTIFY_NEVER
See Also:
Constant Field Values

NOTIFY_SUCCESS

public static final int NOTIFY_SUCCESS
See Also:
Constant Field Values

NOTIFY_FAILURE

public static final int NOTIFY_FAILURE
See Also:
Constant Field Values

NOTIFY_DELAY

public static final int NOTIFY_DELAY
See Also:
Constant Field Values

RETURN_FULL

public static final int RETURN_FULL
See Also:
Constant Field Values

RETURN_HDRS

public static final int RETURN_HDRS
See Also:
Constant Field Values

allow8bitMIME

protected boolean allow8bitMIME

envelopeFrom

protected String envelopeFrom

mailExtension

protected String mailExtension

notifyOptions

protected int notifyOptions

returnOption

protected int returnOption

sendPartial

protected boolean sendPartial

submitter

protected String submitter
Constructor Detail

SMTPMessage

public SMTPMessage(Session session)
Default (and normal) constructor for an SMTPMessage.

Parameters:
session - The hosting Javamail Session.

SMTPMessage

public SMTPMessage(Session session,
                   InputStream source)
            throws MessagingException
Construct an SMTPMessage instance by reading and parsing the data from the provided InputStream. The InputStream will be left positioned at the end of the message data on constructor completion.

Parameters:
session - The hosting Javamail Session.
Throws:
MessagingException

SMTPMessage

public SMTPMessage(MimeMessage source)
            throws MessagingException
Construct an SMTPMimeMessage from another source MimeMessage object. The new object and the old object are independent of each other.

Parameters:
source - The source MimeMessage object.
Throws:
MessagingException
Method Detail

setAllow8bitMIME

public void setAllow8bitMIME(boolean a)
Change the allow8BitMime attribute for the message.

Parameters:
a - The new setting.

getAllow8bitMIME

public boolean getAllow8bitMIME()
Retrieve the current 8bitMIME attribute.

Returns:
The current attribute value.

setEnvelopeFrom

public void setEnvelopeFrom(String from)
Change the envelopeFrom attribute for the message.

Parameters:
from - The new setting.

getEnvelopeFrom

public String getEnvelopeFrom()
Retrieve the current evelopeFrom attribute.

Returns:
The current attribute value.

setMailExtension

public void setMailExtension(String e)
Change the mailExtension attribute for the message.

Parameters:
e - The new setting.

getMailExtension

public String getMailExtension()
Retrieve the current mailExtension attribute.

Returns:
The current attribute value.

setNotifyOptions

public void setNotifyOptions(int options)
Change the notifyOptions attribute for the message.

Parameters:
options - The new setting.

getNotifyOptions

public int getNotifyOptions()
Retrieve the current notifyOptions attribute.

Returns:
The current attribute value.

setReturnOption

public void setReturnOption(int option)
Change the returnOptions attribute for the message.

Parameters:
option - The new setting.

getReturnOption

public int getReturnOption()
Retrieve the current returnOption attribute.

Returns:
The current attribute value.

setSendPartial

public void setSendPartial(boolean a)
Change the sendPartial attribute for the message.

Parameters:
a - The new setting.

getSendPartial

public boolean getSendPartial()
Retrieve the current sendPartial attribute.

Returns:
The current attribute value.

setSubmitter

public void setSubmitter(String s)
Change the submitter attribute for the message.

Parameters:
s - The new setting.

getSubmitter

public String getSubmitter()
Retrieve the current submitter attribute.

Returns:
The current attribute value.


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.