Java Doc for IMAPServer.java in  » Mail-Clients » columba-1.4 » org » columba » mail » imap » 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 » Mail Clients » columba 1.4 » org.columba.mail.imap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.columba.mail.imap.IMAPServer

IMAPServer
public class IMAPServer implements IMAPListener,Observer,IImapServer(Code)
IMAPStore encapsulates IMAPProtocol and the parsers for IMAPFolder.

This way IMAPFolder doesn't need to do any parsing work, etc.

Every IMAPFolder of a single account has also an IMAPRootFolder , which keeps a reference to IMAPServer . Which itself uses IMAPProtocol .

IMAPStore handles the current state of connection:

  • STATE_NONAUTHENTICATE - not authenticated
  • STATE_AUTHENTICATE - authenticated
  • STATE_SELECTED - mailbox is selected

It keeps a reference to the currently selected mailbox.

IMAPFolder shouldn't use IMAPProtocol directly, instead it should use IMAPStore.
author:
   fdietz



Field Summary
 String[]capabilities
    
 booleanusingSSL
    

Constructor Summary
public  IMAPServer(ImapItem item)
    

Method Summary
public  voidalertMessage(String arg0)
    
public  Integerappend(InputStream messageSource, IMAPFlags flags, IMAPFolder folder)
    
public  Integerappend(InputStream messageSource, IMAPFolder folder)
    
public  ListcheckSupportedAuthenticationMethods()
    
public  voidconnectionClosed(String arg0, String arg1)
    
public  Integer[]copy(IMAPFolder destFolder, Object[] uids, IMAPFolder folder)
    
public  voidcreateMailbox(String mailboxName, IMAPFolder folder)
    
public  voiddeleteFolder(String path)
    
protected synchronized  voidensureConnectedState()
    
protected  voidensureLoginState()
     Ensure that we are in login state.
public  voidensureSelectedState(IMAPFolder folder)
    
public  voidexistsChanged(String arg0, int arg1)
    
public  voidexpunge(IMAPFolder folder)
    
protected  StringfetchDelimiter()
     Fetch delimiter.
public  IMAPFlags[]fetchFlagsListStartFrom(int startIdx, IMAPFolder folder)
    
public  IMAPFlags[]fetchFlagsListStartFrom2(int startIdx, IMAPFolder folder)
    
public  voidfetchHeaderList(IHeaderList headerList, List list, IMAPFolder folder)
    
public  NamespaceCollectionfetchNamespaces()
    
public  ListInfo[]fetchSubscribedFolders()
    
public  intfetchUid(SequenceSet set, IMAPFolder folder)
    
public  Integer[]fetchUids(SequenceSet set, IMAPFolder folder)
    
public  voidflagsChanged(String arg0, IMAPFlags arg1)
    
protected  IntegergetAccountUid()
    
public  HeadergetAllHeaders(Object uid, IMAPFolder folder)
    
public  StringgetDelimiter()
    
public  HeadergetHeaders(Object uid, String[] keys, IMAPFolder folder)
    
public  intgetIndex(Integer uid, IMAPFolder folder)
    
public  ImapItemgetItem()
    
public  intgetLargestRemoteUid(IMAPFolder folder)
    
public  MailboxInfogetMessageFolderInfo(IMAPFolder folder)
    
public  InputStreamgetMessageSourceStream(Object uid, IMAPFolder folder)
    
public  InputStreamgetMimePartBodyStream(Object uid, Integer[] address, IMAPFolder folder)
    
public  InputStreamgetMimePartSourceStream(Object uid, Integer[] address, IMAPFolder folder)
    
public  MimeTreegetMimeTree(Object uid, IMAPFolder folder)
    
protected  IStatusObservablegetObservable()
    
public  MailboxStatusgetStatus(IMAPFolder folder)
    
protected static  booleanisAscii(String s)
     Check if string contains US-ASCII characters.
public  booleanisSelected(IMAPFolder folder)
    
public  booleanisSupported(String command)
    
public  ListInfo[]list(String reference, String pattern)
    
public  voidlogout()
    
public  voidmarkMessage(Object[] uids, int variant, IMAPFolder folder)
    
public  voidparseError(String arg0)
    
protected  voidprintStatusMessage(String message)
    
public  voidrecentChanged(String arg0, int arg1)
    
public  voidrenameFolder(String oldMailboxName, String newMailboxName)
    
public  Listsearch(Object[] uids, IFilterRule filterRule, IMAPFolder folder)
    
public  Integer[]search(SearchKey key, IMAPFolder folder)
    
public  Listsearch(IFilterRule filterRule, IMAPFolder folder)
    
public  voidsetExistsChangedAction(IExistsChangedAction existsChangedAction)
    
public  voidsetFirstLoginAction(IFirstLoginAction action)
    
public  voidsetFlags(Object[] uids, IMAPFlags flags, IMAPFolder folder)
    
public  voidsetObservable(IStatusObservable observable)
    
public  voidsetUpdateFlagAction(IUpdateFlagAction updateFlagAction)
    
public  voidsubscribeFolder(String mailboxName)
    
public  voidunsubscribeFolder(String mailboxName)
    
public  voidupdate(Observable o, Object arg)
    
public  voidwarningMessage(String arg0)
    

Field Detail
capabilities
String[] capabilities(Code)



usingSSL
boolean usingSSL(Code)




Constructor Detail
IMAPServer
public IMAPServer(ImapItem item)(Code)




Method Detail
alertMessage
public void alertMessage(String arg0)(Code)



append
public Integer append(InputStream messageSource, IMAPFlags flags, IMAPFolder folder) throws Exception(Code)



append
public Integer append(InputStream messageSource, IMAPFolder folder) throws Exception(Code)



checkSupportedAuthenticationMethods
public List checkSupportedAuthenticationMethods() throws IOException(Code)



connectionClosed
public void connectionClosed(String arg0, String arg1)(Code)



copy
public Integer[] copy(IMAPFolder destFolder, Object[] uids, IMAPFolder folder) throws Exception(Code)



createMailbox
public void createMailbox(String mailboxName, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



deleteFolder
public void deleteFolder(String path) throws Exception(Code)



ensureConnectedState
protected synchronized void ensureConnectedState() throws CommandCancelledException, IOException, IMAPException(Code)



ensureLoginState
protected void ensureLoginState() throws IOException, IMAPException, CommandCancelledException(Code)
Ensure that we are in login state.
throws:
  Exception -



ensureSelectedState
public void ensureSelectedState(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



existsChanged
public void existsChanged(String arg0, int arg1)(Code)



expunge
public void expunge(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



fetchDelimiter
protected String fetchDelimiter() throws IOException, IMAPException, CommandCancelledException(Code)
Fetch delimiter.



fetchFlagsListStartFrom
public IMAPFlags[] fetchFlagsListStartFrom(int startIdx, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



fetchFlagsListStartFrom2
public IMAPFlags[] fetchFlagsListStartFrom2(int startIdx, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



fetchHeaderList
public void fetchHeaderList(IHeaderList headerList, List list, IMAPFolder folder) throws Exception(Code)



fetchNamespaces
public NamespaceCollection fetchNamespaces() throws IOException, IMAPException, CommandCancelledException(Code)



fetchSubscribedFolders
public ListInfo[] fetchSubscribedFolders() throws IOException, IMAPException, CommandCancelledException(Code)



fetchUid
public int fetchUid(SequenceSet set, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



fetchUids
public Integer[] fetchUids(SequenceSet set, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



flagsChanged
public void flagsChanged(String arg0, IMAPFlags arg1)(Code)



getAccountUid
protected Integer getAccountUid()(Code)



getAllHeaders
public Header getAllHeaders(Object uid, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getDelimiter
public String getDelimiter() throws IOException, IMAPException, CommandCancelledException(Code)
Returns mailbox name delimiter

example: "/" (uw-imap), or "." (cyrus) mailbox name delimiter




getHeaders
public Header getHeaders(Object uid, String[] keys, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getIndex
public int getIndex(Integer uid, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getItem
public ImapItem getItem()(Code)
Returns configuration options of this IMAP account configuration options of this IMAP account



getLargestRemoteUid
public int getLargestRemoteUid(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getMessageFolderInfo
public MailboxInfo getMessageFolderInfo(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getMessageSourceStream
public InputStream getMessageSourceStream(Object uid, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getMimePartBodyStream
public InputStream getMimePartBodyStream(Object uid, Integer[] address, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getMimePartSourceStream
public InputStream getMimePartSourceStream(Object uid, Integer[] address, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getMimeTree
public MimeTree getMimeTree(Object uid, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



getObservable
protected IStatusObservable getObservable()(Code)



getStatus
public MailboxStatus getStatus(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



isAscii
protected static boolean isAscii(String s)(Code)
Check if string contains US-ASCII characters.
Parameters:
  s - true, if string contains US-ASCII characters



isSelected
public boolean isSelected(IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



isSupported
public boolean isSupported(String command) throws IOException(Code)



list
public ListInfo[] list(String reference, String pattern) throws Exception(Code)



logout
public void logout() throws Exception(Code)



markMessage
public void markMessage(Object[] uids, int variant, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



parseError
public void parseError(String arg0)(Code)



printStatusMessage
protected void printStatusMessage(String message)(Code)

Parameters:
  message -



recentChanged
public void recentChanged(String arg0, int arg1)(Code)



renameFolder
public void renameFolder(String oldMailboxName, String newMailboxName) throws IOException, IMAPException, CommandCancelledException(Code)



search
public List search(Object[] uids, IFilterRule filterRule, IMAPFolder folder) throws Exception(Code)



search
public Integer[] search(SearchKey key, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



search
public List search(IFilterRule filterRule, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



setExistsChangedAction
public void setExistsChangedAction(IExistsChangedAction existsChangedAction)(Code)



setFirstLoginAction
public void setFirstLoginAction(IFirstLoginAction action)(Code)



setFlags
public void setFlags(Object[] uids, IMAPFlags flags, IMAPFolder folder) throws IOException, IMAPException, CommandCancelledException(Code)



setObservable
public void setObservable(IStatusObservable observable)(Code)



setUpdateFlagAction
public void setUpdateFlagAction(IUpdateFlagAction updateFlagAction)(Code)



subscribeFolder
public void subscribeFolder(String mailboxName) throws IOException, IMAPException, CommandCancelledException(Code)



unsubscribeFolder
public void unsubscribeFolder(String mailboxName) throws IOException, IMAPException, CommandCancelledException(Code)



update
public void update(Observable o, Object arg)(Code)



warningMessage
public void warningMessage(String arg0)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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