Java Doc for MimeMessageCopyOnWriteProxy.java in  » Web-Mail » james-2.3.1 » org » apache » james » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Mail » james 2.3.1 » org.apache.james.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  MessageReferenceTrackerrefCount
    

Constructor Summary
public  MimeMessageCopyOnWriteProxy(MimeMessage original)
    
public  MimeMessageCopyOnWriteProxy(MimeMessageSource original)
    

Method Summary
public  voidaddFrom(Address[] addresses)
    
public  voidaddHeader(String name, String value)
    
public  voidaddHeaderLine(String line)
    
public  voidaddRecipient(RecipientType arg0, Address arg1)
    
public  voidaddRecipients(Message.RecipientType type, Address[] addresses)
    
public  voidaddRecipients(Message.RecipientType type, String addresses)
    
public synchronized  voiddispose()
    
public  booleanequals(Object arg0)
    
protected  voidfinalize()
    
public  EnumerationgetAllHeaderLines()
    
public  EnumerationgetAllHeaders()
    
public  Address[]getAllRecipients()
    
public  ObjectgetContent()
    
public  StringgetContentID()
    
public  String[]getContentLanguage()
    
public  StringgetContentMD5()
    
public  StringgetContentType()
    
public  DataHandlergetDataHandler()
    
public  StringgetDescription()
    
public  StringgetDisposition()
    
public  StringgetEncoding()
    
public  StringgetFileName()
    
public  FlagsgetFlags()
    
public  FoldergetFolder()
    
public  Address[]getFrom()
    
public  String[]getHeader(String name)
    
public  StringgetHeader(String name, String delimiter)
    
public  InputStreamgetInputStream()
    
public  intgetLineCount()
    
public  EnumerationgetMatchingHeaderLines(String[] names)
    
public  EnumerationgetMatchingHeaders(String[] names)
    
public  StringgetMessageID()
    
public  intgetMessageNumber()
    
public  longgetMessageSize()
    
public  EnumerationgetNonMatchingHeaderLines(String[] names)
    
public  EnumerationgetNonMatchingHeaders(String[] names)
    
public  InputStreamgetRawInputStream()
    
public  DategetReceivedDate()
    
public  Address[]getRecipients(Message.RecipientType type)
    
public  Address[]getReplyTo()
    
public  AddressgetSender()
    
public  DategetSentDate()
    
public  intgetSize()
    
public  StringgetSubject()
    
public  MimeMessagegetWrappedMessage()
    
protected  MimeMessagegetWrappedMessageForWriting()
    
public  inthashCode()
    
public  booleanisExpunged()
    
public  booleanisMimeType(String mimeType)
    
public  booleanisSet(Flags.Flag flag)
    
public  booleanmatch(SearchTerm arg0)
    
public  voidremoveHeader(String name)
    
public  Messagereply(boolean replyToAll)
    
public  voidsaveChanges()
    
public  voidsetContent(Object o, String type)
    
public  voidsetContent(Multipart mp)
    
public  voidsetContentID(String cid)
    
public  voidsetContentLanguage(String[] languages)
    
public  voidsetContentMD5(String md5)
    
public  voidsetDataHandler(DataHandler dh)
    
public  voidsetDescription(String description)
    
public  voidsetDescription(String description, String charset)
    
public  voidsetDisposition(String disposition)
    
public  voidsetFileName(String filename)
    
public  voidsetFlag(Flag arg0, boolean arg1)
    
public  voidsetFlags(Flags flag, boolean set)
    
public  voidsetFrom(Address address)
    
public  voidsetFrom()
    
public  voidsetHeader(String name, String value)
    
public  voidsetRecipients(Message.RecipientType type, Address[] addresses)
    
public  voidsetRecipients(Message.RecipientType type, String addresses)
    
public  voidsetReplyTo(Address[] addresses)
    
public  voidsetSender(Address arg0)
    
public  voidsetSentDate(Date d)
    
public  voidsetSubject(String subject)
    
public  voidsetSubject(String subject, String charset)
    
public  voidsetText(String text)
    
public  voidsetText(String text, String charset)
    
public  StringtoString()
    
public  voidwriteTo(OutputStream os)
    
public  voidwriteTo(OutputStream os, String[] ignoreList)
    

Field Detail
refCount
protected MessageReferenceTracker refCount(Code)




Constructor Detail
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 -




Method Detail
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



equals
public boolean equals(Object arg0)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



finalize
protected void finalize() throws Throwable(Code)

See Also:   java.lang.Object.finalize



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)



getInputStream
public InputStream getInputStream() throws IOException, MessagingException(Code)

See Also:   javax.mail.Part.getInputStream



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



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



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)



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



writeTo
public void writeTo(OutputStream os) throws IOException, MessagingException(Code)
Rewritten for optimization purposes



writeTo
public void writeTo(OutputStream os, String[] ignoreList) throws IOException, MessagingException(Code)
Rewritten for optimization purposes



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.