You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.storage.BerkeleyStore

java.lang.Object
   |
   +----javax.mail.Service
           |
           +----javax.mail.Store
                   |
                   +----grendel.storage.BerkeleyStore

Store for Berkeley mail folders.

This class really shouldn't be public, but I haven't figured out how to tie into javamail's Session class properly. So, instead of using Session.getStore(String), you instead need to call BerkeleyStore.GetDefaultStore(Session).


public class  BerkeleyStore
     extends javax.mail.Store
{
          // Fields 2
     protected static BerkeleyStore DefaultStore;
     protected Folder defaultFolder;

          // Constructors 2
     public BerkeleyStore(Session);
     public BerkeleyStore(Session, URLName);

          // Methods 8
     public static Store GetDefaultStore(Session);
     public void close();
     public void connect();
     public void connect(String, String, String);
     public Folder getDefaultFolder();
     public Folder getFolder(String) throws MessagingException;
     public Folder getFolder(URL);
     public Folder getFolder(URLName);
}



Fields


defaultFolder

   protected Folder defaultFolder


DefaultStore

   protected static BerkeleyStore DefaultStore



Constructors


BerkeleyStore

   public BerkeleyStore(Session s) 


BerkeleyStore

   public BerkeleyStore(Session s, 
                        URLName u) 



Methods


GetDefaultStore

   public static Store GetDefaultStore(Session s) 


connect

   public void connect(String host, 
                       String user, 
                       String password) 
Overrides:
connect in class Service


connect

   public void connect() 
Overrides:
connect in class Service


close

   public void close() 
Overrides:
close in class Service


getDefaultFolder

   public Folder getDefaultFolder() 
Overrides:
getDefaultFolder in class Store


getFolder

   public Folder getFolder(String name)  throws MessagingException
Overrides:
getFolder in class Store


getFolder

   public Folder getFolder(URL url) 


getFolder

   public Folder getFolder(URLName urlName) 
Overrides:
getFolder in class Store


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4