| |
|
| org.apache.james.core.MimeMessageCopyOnWriteProxy
MimeMessageCopyOnWriteProxy | public class MimeMessageCopyOnWriteProxy extends MimeMessage implements Disposable(Code) | | This object wraps a "possibly shared" MimeMessage tracking copies and
automatically cloning it (if shared) when a write operation is invoked.
|
Inner Class :protected static class MessageReferenceTracker | |
Field Summary | |
protected MessageReferenceTracker | refCount |
Method Summary | |
public void | addFrom(Address[] addresses) | public void | addHeader(String name, String value) | public void | addHeaderLine(String line) | public void | addRecipient(RecipientType arg0, Address arg1) | public void | addRecipients(Message.RecipientType type, Address[] addresses) | public void | addRecipients(Message.RecipientType type, String addresses) | public synchronized void | dispose() | public boolean | equals(Object arg0) | protected void | finalize() | public Enumeration | getAllHeaderLines() | public Enumeration | getAllHeaders() | public Address[] | getAllRecipients() | public Object | getContent() | public String | getContentID() | public String[] | getContentLanguage() | public String | getContentMD5() | public String | getContentType() | public DataHandler | getDataHandler() | public String | getDescription() | public String | getDisposition() | public String | getEncoding() | public String | getFileName() | public Flags | getFlags() | public Folder | getFolder() | public Address[] | getFrom() | public String[] | getHeader(String name) | public String | getHeader(String name, String delimiter) | public InputStream | getInputStream() | public int | getLineCount() | public Enumeration | getMatchingHeaderLines(String[] names) | public Enumeration | getMatchingHeaders(String[] names) | public String | getMessageID() | public int | getMessageNumber() | public long | getMessageSize() | public Enumeration | getNonMatchingHeaderLines(String[] names) | public Enumeration | getNonMatchingHeaders(String[] names) | public InputStream | getRawInputStream() | public Date | getReceivedDate() | public Address[] | getRecipients(Message.RecipientType type) | public Address[] | getReplyTo() | public Address | getSender() | public Date | getSentDate() | public int | getSize() | public String | getSubject() | public MimeMessage | getWrappedMessage() | protected MimeMessage | getWrappedMessageForWriting() | public int | hashCode() | public boolean | isExpunged() | public boolean | isMimeType(String mimeType) | public boolean | isSet(Flags.Flag flag) | public boolean | match(SearchTerm arg0) | public void | removeHeader(String name) | public Message | reply(boolean replyToAll) | public void | saveChanges() | public void | setContent(Object o, String type) | public void | setContent(Multipart mp) | public void | setContentID(String cid) | public void | setContentLanguage(String[] languages) | public void | setContentMD5(String md5) | public void | setDataHandler(DataHandler dh) | public void | setDescription(String description) | public void | setDescription(String description, String charset) | public void | setDisposition(String disposition) | public void | setFileName(String filename) | public void | setFlag(Flag arg0, boolean arg1) | public void | setFlags(Flags flag, boolean set) | public void | setFrom(Address address) | public void | setFrom() | public void | setHeader(String name, String value) | public void | setRecipients(Message.RecipientType type, Address[] addresses) | public void | setRecipients(Message.RecipientType type, String addresses) | public void | setReplyTo(Address[] addresses) | public void | setSender(Address arg0) | public void | setSentDate(Date d) | public void | setSubject(String subject) | public void | setSubject(String subject, String charset) | public void | setText(String text) | public void | setText(String text, String charset) | public String | toString() | public void | writeTo(OutputStream os) | public void | writeTo(OutputStream os, String[] ignoreList) |
refCount | protected MessageReferenceTracker refCount(Code) | | |
MimeMessageCopyOnWriteProxy | public MimeMessageCopyOnWriteProxy(MimeMessage original) throws MessagingException(Code) | | Parameters: original - MimeMessageWrapper throws: MessagingException - |
MimeMessageCopyOnWriteProxy | public MimeMessageCopyOnWriteProxy(MimeMessageSource original) throws MessagingException(Code) | | Parameters: original - MimeMessageSource throws: MessagingException - |
addFrom | public void addFrom(Address[] addresses) throws MessagingException(Code) | | See Also: javax.mail.Message.addFrom(javax.mail.Address[]) |
addHeader | public void addHeader(String name, String value) throws MessagingException(Code) | | See Also: javax.mail.Part.addHeader(java.lang.Stringjava.lang.String) |
addHeaderLine | public void addHeaderLine(String line) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.addHeaderLine(java.lang.String) |
addRecipient | public void addRecipient(RecipientType arg0, Address arg1) throws MessagingException(Code) | | See Also: javax.mail.Message.addRecipient(javax.mail.Message.RecipientTypejavax.mail.Address) |
addRecipients | public void addRecipients(Message.RecipientType type, Address[] addresses) throws MessagingException(Code) | | See Also: javax.mail.Message.addRecipients(javax.mail.Message.RecipientTypejavax.mail.Address[]) |
addRecipients | public void addRecipients(Message.RecipientType type, String addresses) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.addRecipients(javax.mail.Message.RecipientTypejava.lang.String) |
dispose | public synchronized void dispose()(Code) | | See Also: org.apache.avalon.framework.activity.Disposable.dispose |
getAllHeaderLines | public Enumeration getAllHeaderLines() throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getAllHeaderLines |
getAllHeaders | public Enumeration getAllHeaders() throws MessagingException(Code) | | See Also: javax.mail.Part.getAllHeaders |
getAllRecipients | public Address[] getAllRecipients() throws MessagingException(Code) | | See Also: javax.mail.Message.getAllRecipients |
getContent | public Object getContent() throws IOException, MessagingException(Code) | | See Also: javax.mail.Part.getContent |
getContentID | public String getContentID() throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getContentID |
getContentLanguage | public String[] getContentLanguage() throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getContentLanguage |
getContentMD5 | public String getContentMD5() throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getContentMD5 |
getContentType | public String getContentType() throws MessagingException(Code) | | See Also: javax.mail.Part.getContentType |
getDataHandler | public DataHandler getDataHandler() throws MessagingException(Code) | | See Also: javax.mail.Part.getDataHandler |
getDescription | public String getDescription() throws MessagingException(Code) | | See Also: javax.mail.Part.getDescription |
getDisposition | public String getDisposition() throws MessagingException(Code) | | See Also: javax.mail.Part.getDisposition |
getEncoding | public String getEncoding() throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getEncoding |
getFileName | public String getFileName() throws MessagingException(Code) | | See Also: javax.mail.Part.getFileName |
getFlags | public Flags getFlags() throws MessagingException(Code) | | See Also: javax.mail.Message.getFlags |
getFolder | public Folder getFolder()(Code) | | See Also: javax.mail.Message.getFolder |
getFrom | public Address[] getFrom() throws MessagingException(Code) | | See Also: javax.mail.Message.getFrom |
getHeader | public String[] getHeader(String name) throws MessagingException(Code) | | See Also: javax.mail.Part.getHeader(java.lang.String) |
getHeader | public String getHeader(String name, String delimiter) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getHeader(java.lang.Stringjava.lang.String) |
getLineCount | public int getLineCount() throws MessagingException(Code) | | See Also: javax.mail.Part.getLineCount |
getMatchingHeaderLines | public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getMatchingHeaderLines(java.lang.String[]) |
getMatchingHeaders | public Enumeration getMatchingHeaders(String[] names) throws MessagingException(Code) | | See Also: javax.mail.Part.getMatchingHeaders(java.lang.String[]) |
getMessageID | public String getMessageID() throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.getMessageID |
getMessageNumber | public int getMessageNumber()(Code) | | See Also: javax.mail.Message.getMessageNumber |
getMessageSize | public long getMessageSize() throws MessagingException(Code) | | the message size throws: MessagingException - |
getNonMatchingHeaderLines | public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.getNonMatchingHeaderLines(java.lang.String[]) |
getNonMatchingHeaders | public Enumeration getNonMatchingHeaders(String[] names) throws MessagingException(Code) | | See Also: javax.mail.Part.getNonMatchingHeaders(java.lang.String[]) |
getRawInputStream | public InputStream getRawInputStream() throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.getRawInputStream |
getReceivedDate | public Date getReceivedDate() throws MessagingException(Code) | | See Also: javax.mail.Message.getReceivedDate |
getRecipients | public Address[] getRecipients(Message.RecipientType type) throws MessagingException(Code) | | See Also: javax.mail.Message.getRecipients(javax.mail.Message.RecipientType) |
getReplyTo | public Address[] getReplyTo() throws MessagingException(Code) | | See Also: javax.mail.Message.getReplyTo |
getSender | public Address getSender() throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.getSender |
getSentDate | public Date getSentDate() throws MessagingException(Code) | | See Also: javax.mail.Message.getSentDate |
getSize | public int getSize() throws MessagingException(Code) | | See Also: javax.mail.Part.getSize |
getSubject | public String getSubject() throws MessagingException(Code) | | See Also: javax.mail.Message.getSubject |
getWrappedMessage | public MimeMessage getWrappedMessage()(Code) | | |
getWrappedMessageForWriting | protected MimeMessage getWrappedMessageForWriting() throws MessagingException(Code) | | Check the number of references over the MimeMessage and clone it if
needed before returning the reference
throws: MessagingException - exception |
isExpunged | public boolean isExpunged()(Code) | | See Also: javax.mail.Message.isExpunged |
isMimeType | public boolean isMimeType(String mimeType) throws MessagingException(Code) | | See Also: javax.mail.Part.isMimeType(java.lang.String) |
isSet | public boolean isSet(Flags.Flag flag) throws MessagingException(Code) | | See Also: javax.mail.Message.isSet(javax.mail.Flags.Flag) |
match | public boolean match(SearchTerm arg0) throws MessagingException(Code) | | See Also: javax.mail.Message.match(javax.mail.search.SearchTerm) |
removeHeader | public void removeHeader(String name) throws MessagingException(Code) | | See Also: javax.mail.Part.removeHeader(java.lang.String) |
reply | public Message reply(boolean replyToAll) throws MessagingException(Code) | | This does not need a writable message
See Also: javax.mail.Message.reply(boolean) |
saveChanges | public void saveChanges() throws MessagingException(Code) | | See Also: javax.mail.Message.saveChanges |
setContent | public void setContent(Object o, String type) throws MessagingException(Code) | | See Also: javax.mail.Part.setContent(java.lang.Objectjava.lang.String) |
setContent | public void setContent(Multipart mp) throws MessagingException(Code) | | See Also: javax.mail.Part.setContent(javax.mail.Multipart) |
setContentID | public void setContentID(String cid) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.setContentID(java.lang.String) |
setContentLanguage | public void setContentLanguage(String[] languages) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.setContentLanguage(java.lang.String[]) |
setContentMD5 | public void setContentMD5(String md5) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.setContentMD5(java.lang.String) |
setDataHandler | public void setDataHandler(DataHandler dh) throws MessagingException(Code) | | See Also: javax.mail.Part.setDataHandler(javax.activation.DataHandler) |
setDescription | public void setDescription(String description) throws MessagingException(Code) | | See Also: javax.mail.Part.setDescription(java.lang.String) |
setDescription | public void setDescription(String description, String charset) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.setDescription(java.lang.Stringjava.lang.String) |
setDisposition | public void setDisposition(String disposition) throws MessagingException(Code) | | See Also: javax.mail.Part.setDisposition(java.lang.String) |
setFileName | public void setFileName(String filename) throws MessagingException(Code) | | See Also: javax.mail.Part.setFileName(java.lang.String) |
setFlag | public void setFlag(Flag arg0, boolean arg1) throws MessagingException(Code) | | See Also: javax.mail.Message.setFlag(javax.mail.Flags.Flagboolean) |
setFlags | public void setFlags(Flags flag, boolean set) throws MessagingException(Code) | | See Also: javax.mail.Message.setFlags(javax.mail.Flagsboolean) |
setFrom | public void setFrom(Address address) throws MessagingException(Code) | | See Also: javax.mail.Message.setFrom(javax.mail.Address) |
setFrom | public void setFrom() throws MessagingException(Code) | | See Also: javax.mail.Message.setFrom |
setHeader | public void setHeader(String name, String value) throws MessagingException(Code) | | See Also: javax.mail.Part.setHeader(java.lang.Stringjava.lang.String) |
setRecipients | public void setRecipients(Message.RecipientType type, Address[] addresses) throws MessagingException(Code) | | See Also: javax.mail.Message.setRecipients(javax.mail.Message.RecipientTypejavax.mail.Address[]) |
setRecipients | public void setRecipients(Message.RecipientType type, String addresses) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.setRecipients(javax.mail.Message.RecipientTypejava.lang.String) |
setReplyTo | public void setReplyTo(Address[] addresses) throws MessagingException(Code) | | See Also: javax.mail.Message.setReplyTo(javax.mail.Address[]) |
setSender | public void setSender(Address arg0) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.setSender(javax.mail.Address) |
setSentDate | public void setSentDate(Date d) throws MessagingException(Code) | | See Also: javax.mail.Message.setSentDate(java.util.Date) |
setSubject | public void setSubject(String subject) throws MessagingException(Code) | | See Also: javax.mail.Message.setSubject(java.lang.String) |
setSubject | public void setSubject(String subject, String charset) throws MessagingException(Code) | | See Also: javax.mail.internet.MimeMessage.setSubject(java.lang.Stringjava.lang.String) |
setText | public void setText(String text) throws MessagingException(Code) | | See Also: javax.mail.Part.setText(java.lang.String) |
setText | public void setText(String text, String charset) throws MessagingException(Code) | | See Also: javax.mail.internet.MimePart.setText(java.lang.Stringjava.lang.String) |
|
|
|