com.noelios.restlet.ext.javamail
Class RepresentationMessage

java.lang.Object
  extended by javax.mail.Message
      extended by javax.mail.internet.MimeMessage
          extended by com.noelios.restlet.ext.javamail.RepresentationMessage
All Implemented Interfaces:
MimePart, Part

public class RepresentationMessage
extends MimeMessage

JavaMail MIME message based on an XML representation. For the XML format, see the JavaMailClientHelper class.

Author:
Jerome Louvel

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage
MimeMessage.RecipientType
 
Field Summary
 
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
RepresentationMessage(Representation xmlMessage, Session session)
          Creates a JavaMail message by parsing an XML representation.
RepresentationMessage(Session session)
          Constructor.
 
Method Summary
 
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
 

Constructor Detail

RepresentationMessage

public RepresentationMessage(Representation xmlMessage,
                             Session session)
                      throws java.io.IOException,
                             AddressException,
                             MessagingException
Creates a JavaMail message by parsing an XML representation.

Parameters:
xmlMessage - The XML message to parse.
session - The current JavaMail session.
Throws:
java.io.IOException
AddressException
MessagingException

RepresentationMessage

public RepresentationMessage(Session session)
Constructor.

Parameters:
session - The current JavaMail session.


Copyright © 2005-2008 Noelios Technologies.