javax.mail
Class Store

java.lang.Object
  extended byjavax.mail.Service
      extended byjavax.mail.Store

public abstract class Store
extends Service

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

Field Summary
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
protected Store(Session session, URLName name)
           
 
Method Summary
 void addFolderListener(FolderListener listener)
           
 void addStoreListener(StoreListener listener)
           
abstract  Folder getDefaultFolder()
           
abstract  Folder getFolder(String name)
           
abstract  Folder getFolder(URLName name)
           
 Folder[] getPersonalNamespaces()
           
 Folder[] getSharedNamespaces()
           
 Folder[] getUserNamespaces(String name)
           
protected  void notifyFolderListeners(int type, Folder folder)
           
protected  void notifyFolderRenamedListeners(Folder oldFolder, Folder newFolder)
           
protected  void notifyStoreListeners(int type, String message)
           
 void removeFolderListener(FolderListener listener)
           
 void removeStoreListener(StoreListener listener)
           
 
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

Store

protected Store(Session session,
                URLName name)
Method Detail

addFolderListener

public void addFolderListener(FolderListener listener)

addStoreListener

public void addStoreListener(StoreListener listener)

getDefaultFolder

public abstract Folder getDefaultFolder()
                                 throws MessagingException
Throws:
MessagingException

getFolder

public abstract Folder getFolder(String name)
                          throws MessagingException
Throws:
MessagingException

getFolder

public abstract Folder getFolder(URLName name)
                          throws MessagingException
Throws:
MessagingException

getPersonalNamespaces

public Folder[] getPersonalNamespaces()
                               throws MessagingException
Throws:
MessagingException

getSharedNamespaces

public Folder[] getSharedNamespaces()
                             throws MessagingException
Throws:
MessagingException

getUserNamespaces

public Folder[] getUserNamespaces(String name)
                           throws MessagingException
Throws:
MessagingException

notifyFolderListeners

protected void notifyFolderListeners(int type,
                                     Folder folder)

notifyFolderRenamedListeners

protected void notifyFolderRenamedListeners(Folder oldFolder,
                                            Folder newFolder)

notifyStoreListeners

protected void notifyStoreListeners(int type,
                                    String message)

removeFolderListener

public void removeFolderListener(FolderListener listener)

removeStoreListener

public void removeStoreListener(StoreListener listener)


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