|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.Service javax.mail.Store
public abstract class Store
Abstract class that represents a message store.
Field Summary |
---|
Fields inherited from class javax.mail.Service |
---|
debug, session, url |
Constructor Summary | |
---|---|
protected |
Store(Session session,
URLName name)
Constructor specifying session and url of this store. |
Method Summary | |
---|---|
void |
addFolderListener(FolderListener listener)
|
void |
addStoreListener(StoreListener listener)
|
abstract Folder |
getDefaultFolder()
Retutn a Folder object that represents the root of the namespace for the current user. |
abstract Folder |
getFolder(String name)
Return the Folder corresponding to the given name. |
abstract Folder |
getFolder(URLName name)
Return the folder identified by the URLName; the URLName must refer to this Store. |
Folder[] |
getPersonalNamespaces()
Return the root folders of the personal namespace belonging to the current user. |
Folder[] |
getSharedNamespaces()
Return the root folders of namespaces that are intended to be shared between users. |
Folder[] |
getUserNamespaces(String user)
Return the root folders of the personal namespaces belonging to the supplied user. |
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, 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 |
---|
protected Store(Session session, URLName name)
session
- the session associated with this storename
- the URL of the storeMethod Detail |
---|
public abstract Folder getDefaultFolder() throws MessagingException
MessagingException
- if there was a problem accessing the storepublic abstract Folder getFolder(String name) throws MessagingException
Folder.exists()
method can be used
to determine if it is real.
name
- the name of the Folder to return
MessagingException
- if there was a problem accessing the storepublic abstract Folder getFolder(URLName name) throws MessagingException
URLName.getFile()
method to determined the folder name.
name
- the folder to return
MessagingException
- if there was a problem accessing the storepublic Folder[] getPersonalNamespaces() throws MessagingException
getDefaultFolder()
.
MessagingException
- if there was a problem accessing the storepublic Folder[] getUserNamespaces(String user) throws MessagingException
user
- the user whose namespaces should be returned
MessagingException
- if there was a problem accessing the storepublic Folder[] getSharedNamespaces() throws MessagingException
MessagingException
- if there was a problem accessing the storepublic void addStoreListener(StoreListener listener)
public void removeStoreListener(StoreListener listener)
protected void notifyStoreListeners(int type, String message)
public void addFolderListener(FolderListener listener)
public void removeFolderListener(FolderListener listener)
protected void notifyFolderListeners(int type, Folder folder)
protected void notifyFolderRenamedListeners(Folder oldFolder, Folder newFolder)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |