| org.apache.james.core.MimeMessageWrapper
MimeMessageWrapper | public class MimeMessageWrapper extends MimeMessage implements Disposable(Code) | | This object wraps a MimeMessage, only loading the underlying MimeMessage
object when needed. Also tracks if changes were made to reduce
unnecessary saves.
|
bodyModified | protected boolean bodyModified(Code) | | This is false until we parse the message
|
headersModified | protected boolean headersModified(Code) | | This is false until we parse the message
|
messageParsed | protected boolean messageParsed(Code) | | This is false until we parse the message
|
MimeMessageWrapper | public MimeMessageWrapper(Session session, MimeMessageSource source) throws MessagingException(Code) | | A constructor that instantiates a MimeMessageWrapper based on
a MimeMessageSource
Parameters: source - the MimeMessageSource throws: MessagingException - |
MimeMessageWrapper | public MimeMessageWrapper(MimeMessageSource source) throws MessagingException(Code) | | A constructor that instantiates a MimeMessageWrapper based on
a MimeMessageSource
Parameters: source - the MimeMessageSource throws: MessagingException - throws: MessagingException - |
MimeMessageWrapper | public MimeMessageWrapper(MimeMessage original) throws MessagingException(Code) | | |
addHeaderLine | public void addHeaderLine(String line) throws MessagingException(Code) | | |
createInternetHeaders | protected synchronized InternetHeaders createInternetHeaders(InputStream is) throws MessagingException(Code) | | If we already parsed the headers then we simply return the updated ones.
Otherwise we parse
See Also: javax.mail.internet.MimeMessage.createInternetHeaders(java.io.InputStream) |
dispose | public void dispose()(Code) | | See Also: org.apache.avalon.framework.activity.Disposable.dispose |
getAllHeaderLines | public Enumeration getAllHeaderLines() throws MessagingException(Code) | | |
getContentStream | protected InputStream getContentStream() throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.getContentStream |
getHeader | public String[] getHeader(String name) throws MessagingException(Code) | | We override all the "headers" access methods to be sure that we
loaded the headers
|
getLineCount | public int getLineCount() throws MessagingException(Code) | | Corrects JavaMail 1.1 version which always returns -1.
Only corrected for content less than 5000 bytes,
to avoid memory hogging.
|
getMessageSize | public long getMessageSize() throws MessagingException(Code) | | Returns size of message, ie headers and content
|
getNonMatchingHeaderLines | public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException(Code) | | |
getRawInputStream | public InputStream getRawInputStream() throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.getRawInputStream |
getSize | public int getSize() throws MessagingException(Code) | | This is the MimeMessage implementation - this should return ONLY the
body, not the entire message (should not count headers). Will have
to parse the message.
|
getSourceId | public synchronized String getSourceId()(Code) | | Returns the source ID of the MimeMessageSource that is supplying this
with data.
See Also: MimeMessageSource |
isModified | public synchronized boolean isModified()(Code) | | Get whether the message has been modified.
whether the message has been modified |
loadHeaders | protected synchronized void loadHeaders() throws MessagingException(Code) | | Load the message headers from the internal source.
throws: MessagingException - if an error is encountered whileloading the headers |
loadMessage | protected synchronized void loadMessage() throws MessagingException(Code) | | Load the complete MimeMessage from the internal source.
throws: MessagingException - if an error is encountered whileloading the message |
parse | protected synchronized void parse(InputStream is) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.parse(java.io.InputStream) |
removeHeader | public void removeHeader(String name) throws MessagingException(Code) | | |
setDataHandler | public synchronized void setDataHandler(DataHandler arg0) throws MessagingException(Code) | | The message is changed when working with headers and when altering the content.
Every method that alter the content will fallback to this one.
See Also: javax.mail.Part.setDataHandler(javax.activation.DataHandler) |
|
|