Methods Summary |
---|
public void | addFrom(javax.mail.Address[] addresses)
getWrappedMessageForWriting().addFrom(addresses);
|
public void | addHeader(java.lang.String name, java.lang.String value)
getWrappedMessageForWriting().addHeader(name, value);
|
public void | addHeaderLine(java.lang.String line)
getWrappedMessageForWriting().addHeaderLine(line);
|
public void | addRecipient(RecipientType arg0, javax.mail.Address arg1)
getWrappedMessageForWriting().addRecipient(arg0, arg1);
|
public void | addRecipients(javax.mail.Message$RecipientType type, javax.mail.Address[] addresses)
getWrappedMessageForWriting().addRecipients(type, addresses);
|
public void | addRecipients(javax.mail.Message$RecipientType type, java.lang.String addresses)
getWrappedMessageForWriting().addRecipients(type, addresses);
|
public synchronized void | dispose()
if (refCount != null) {
refCount.decrementReferenceCount();
refCount = null;
}
|
public boolean | equals(java.lang.Object arg0)
return getWrappedMessage().equals(arg0);
|
protected void | finalize()
dispose();
super.finalize();
|
public java.util.Enumeration | getAllHeaderLines()
return getWrappedMessage().getAllHeaderLines();
|
public java.util.Enumeration | getAllHeaders()
return getWrappedMessage().getAllHeaders();
|
public javax.mail.Address[] | getAllRecipients()
return getWrappedMessage().getAllRecipients();
|
public java.lang.Object | getContent()
return getWrappedMessage().getContent();
|
public java.lang.String | getContentID()
return getWrappedMessage().getContentID();
|
public java.lang.String[] | getContentLanguage()
return getWrappedMessage().getContentLanguage();
|
public java.lang.String | getContentMD5()
return getWrappedMessage().getContentMD5();
|
public java.lang.String | getContentType()
return getWrappedMessage().getContentType();
|
public javax.activation.DataHandler | getDataHandler()
return getWrappedMessage().getDataHandler();
|
public java.lang.String | getDescription()
return getWrappedMessage().getDescription();
|
public java.lang.String | getDisposition()
return getWrappedMessage().getDisposition();
|
public java.lang.String | getEncoding()
return getWrappedMessage().getEncoding();
|
public java.lang.String | getFileName()
return getWrappedMessage().getFileName();
|
public javax.mail.Flags | getFlags()
return getWrappedMessage().getFlags();
|
public javax.mail.Folder | getFolder()
return getWrappedMessage().getFolder();
|
public javax.mail.Address[] | getFrom()
return getWrappedMessage().getFrom();
|
public java.lang.String[] | getHeader(java.lang.String name)
return getWrappedMessage().getHeader(name);
|
public java.lang.String | getHeader(java.lang.String name, java.lang.String delimiter)
return getWrappedMessage().getHeader(name, delimiter);
|
public java.io.InputStream | getInputStream()
return getWrappedMessage().getInputStream();
|
public int | getLineCount()
return getWrappedMessage().getLineCount();
|
public java.util.Enumeration | getMatchingHeaderLines(java.lang.String[] names)
return getWrappedMessage().getMatchingHeaderLines(names);
|
public java.util.Enumeration | getMatchingHeaders(java.lang.String[] names)
return getWrappedMessage().getMatchingHeaders(names);
|
public java.lang.String | getMessageID()
return getWrappedMessage().getMessageID();
|
public int | getMessageNumber()
return getWrappedMessage().getMessageNumber();
|
public long | getMessageSize()
return MimeMessageUtil.getMessageSize(getWrappedMessage());
|
public java.util.Enumeration | getNonMatchingHeaderLines(java.lang.String[] names)
return getWrappedMessage().getNonMatchingHeaderLines(names);
|
public java.util.Enumeration | getNonMatchingHeaders(java.lang.String[] names)
return getWrappedMessage().getNonMatchingHeaders(names);
|
public java.io.InputStream | getRawInputStream()
return getWrappedMessage().getRawInputStream();
|
public java.util.Date | getReceivedDate()
return getWrappedMessage().getReceivedDate();
|
public javax.mail.Address[] | getRecipients(javax.mail.Message$RecipientType type)
return getWrappedMessage().getRecipients(type);
|
public javax.mail.Address[] | getReplyTo()
return getWrappedMessage().getReplyTo();
|
public javax.mail.Address | getSender()
return getWrappedMessage().getSender();
|
public java.util.Date | getSentDate()
return getWrappedMessage().getSentDate();
|
public int | getSize()
return getWrappedMessage().getSize();
|
public java.lang.String | getSubject()
return getWrappedMessage().getSubject();
|
public javax.mail.internet.MimeMessage | getWrappedMessage()
return refCount.getWrapped();
|
protected javax.mail.internet.MimeMessage | getWrappedMessageForWriting()Check the number of references over the MimeMessage and clone it if
needed before returning the reference
synchronized (refCount) {
if (refCount.getReferenceCount() > 1) {
refCount.decrementReferenceCount();
refCount = new MessageReferenceTracker(new MimeMessageWrapper(refCount.getWrapped()));
}
}
return refCount.getWrapped();
|
public int | hashCode()
return getWrappedMessage().hashCode();
|
public boolean | isExpunged()
return getWrappedMessage().isExpunged();
|
public boolean | isMimeType(java.lang.String mimeType)
return getWrappedMessage().isMimeType(mimeType);
|
public boolean | isSet(javax.mail.Flags.Flag flag)
return getWrappedMessage().isSet(flag);
|
public boolean | match(javax.mail.search.SearchTerm arg0)
return getWrappedMessage().match(arg0);
|
public void | removeHeader(java.lang.String name)
getWrappedMessageForWriting().removeHeader(name);
|
public javax.mail.Message | reply(boolean replyToAll)This does not need a writable message
return getWrappedMessage().reply(replyToAll);
|
public void | saveChanges()
getWrappedMessageForWriting().saveChanges();
|
public void | setContent(java.lang.Object o, java.lang.String type)
getWrappedMessageForWriting().setContent(o, type);
|
public void | setContent(javax.mail.Multipart mp)
getWrappedMessageForWriting().setContent(mp);
|
public void | setContentID(java.lang.String cid)
getWrappedMessageForWriting().setContentID(cid);
|
public void | setContentLanguage(java.lang.String[] languages)
getWrappedMessageForWriting().setContentLanguage(languages);
|
public void | setContentMD5(java.lang.String md5)
getWrappedMessageForWriting().setContentMD5(md5);
|
public void | setDataHandler(javax.activation.DataHandler dh)
getWrappedMessageForWriting().setDataHandler(dh);
|
public void | setDescription(java.lang.String description)
getWrappedMessageForWriting().setDescription(description);
|
public void | setDescription(java.lang.String description, java.lang.String charset)
getWrappedMessageForWriting().setDescription(description, charset);
|
public void | setDisposition(java.lang.String disposition)
getWrappedMessageForWriting().setDisposition(disposition);
|
public void | setFileName(java.lang.String filename)
getWrappedMessageForWriting().setFileName(filename);
|
public void | setFlag(javax.mail.Flags.Flag arg0, boolean arg1)
getWrappedMessageForWriting().setFlag(arg0, arg1);
|
public void | setFlags(javax.mail.Flags flag, boolean set)
getWrappedMessageForWriting().setFlags(flag, set);
|
public void | setFrom(javax.mail.Address address)
getWrappedMessageForWriting().setFrom(address);
|
public void | setFrom()
getWrappedMessageForWriting().setFrom();
|
public void | setHeader(java.lang.String name, java.lang.String value)
getWrappedMessageForWriting().setHeader(name, value);
|
public void | setRecipients(javax.mail.Message$RecipientType type, javax.mail.Address[] addresses)
getWrappedMessageForWriting().setRecipients(type, addresses);
|
public void | setRecipients(javax.mail.Message$RecipientType type, java.lang.String addresses)
getWrappedMessageForWriting().setRecipients(type, addresses);
|
public void | setReplyTo(javax.mail.Address[] addresses)
getWrappedMessageForWriting().setReplyTo(addresses);
|
public void | setSender(javax.mail.Address arg0)
getWrappedMessageForWriting().setSender(arg0);
|
public void | setSentDate(java.util.Date d)
getWrappedMessageForWriting().setSentDate(d);
|
public void | setSubject(java.lang.String subject)
getWrappedMessageForWriting().setSubject(subject);
|
public void | setSubject(java.lang.String subject, java.lang.String charset)
getWrappedMessageForWriting().setSubject(subject, charset);
|
public void | setText(java.lang.String text)
getWrappedMessageForWriting().setText(text);
|
public void | setText(java.lang.String text, java.lang.String charset)
getWrappedMessageForWriting().setText(text, charset);
|
public java.lang.String | toString()
return getWrappedMessage().toString();
|
public void | writeTo(java.io.OutputStream os)Rewritten for optimization purposes
getWrappedMessage().writeTo(os);
|
public void | writeTo(java.io.OutputStream os, java.lang.String[] ignoreList)Rewritten for optimization purposes
getWrappedMessage().writeTo(os, ignoreList);
|