org.apache.geronimo.mail
Class AbstractStore

java.lang.Object
  extended byjavax.mail.Service
      extended byjavax.mail.Store
          extended byorg.apache.geronimo.mail.AbstractStore
Direct Known Subclasses:
IMAPStore, POP3Store

public abstract class AbstractStore
extends javax.mail.Store

Apache implementation of a generic store. May be subclassed for optimisation for specific protocols.

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:32 $

Field Summary
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
AbstractStore(javax.mail.Session session, javax.mail.URLName name)
           
 
Method Summary
 javax.mail.Folder getDefaultFolder()
          Returns the folder called INBOX unless a subclass overrides it
 javax.mail.Folder getFolder(String name)
          Delegates the method to the new URLName class
 
Methods inherited from class javax.mail.Store
addFolderListener, addStoreListener, getFolder, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
 
Methods inherited from class javax.mail.Service
addConnectionListener, close, connect, connect, connect, finalize, getURLName, isConnected, notifyConnectionListeners, protocolConnect, queueEvent, removeConnectionListener, setConnected, setURLName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractStore

public AbstractStore(javax.mail.Session session,
                     javax.mail.URLName name)
Parameters:
session - the Session this store is associated with
name - the @{link URLName} of this store
Method Detail

getDefaultFolder

public javax.mail.Folder getDefaultFolder()
                                   throws javax.mail.MessagingException
Returns the folder called INBOX unless a subclass overrides it

Throws:
javax.mail.MessagingException

getFolder

public javax.mail.Folder getFolder(String name)
                            throws javax.mail.MessagingException
Delegates the method to the new URLName class

Throws:
javax.mail.MessagingException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.