public final class MaildirStore extends Store implements gnu.mail.treeutil.StatusSource
| Constructor and Description |
|---|
MaildirStore(Session session,
URLName urlname)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusListener(gnu.mail.treeutil.StatusListener l)
Adds a status listener to this store.
|
Folder |
getDefaultFolder()
Returns the default folder.
|
Folder |
getFolder(java.lang.String filename)
Returns the folder with the specified filename.
|
Folder |
getFolder(URLName urlname)
Returns the folder specified by the filename of the URLName.
|
protected void |
processStatusEvent(gnu.mail.treeutil.StatusEvent event)
Processes a status event.
|
protected boolean |
protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
There isn't a protocol to implement, so this method just returns.
|
void |
removeStatusListener(gnu.mail.treeutil.StatusListener l)
Removes a status listener from this store.
|
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListeneraddConnectionListener, close, connect, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toStringprotected boolean protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
throws MessagingException
protocolConnect in class Servicehost - the name of the host to connect toport - the port to use (-1 for the default port)username - the usernamepassword - the passwordAuthenticationFailedException - on authentication failureMessagingException - for non-authentication failurespublic Folder getDefaultFolder() throws MessagingException
getDefaultFolder in class StoreMessagingExceptionpublic Folder getFolder(java.lang.String filename) throws MessagingException
getFolder in class Storefilename - the folder nameMessagingExceptionpublic Folder getFolder(URLName urlname) throws MessagingException
getFolder in class Storeurlname - a URLName denoting a folderMessagingExceptionpublic void addStatusListener(gnu.mail.treeutil.StatusListener l)
addStatusListener in interface gnu.mail.treeutil.StatusSourcel - the status listenerremoveStatusListener(gnu.mail.treeutil.StatusListener)public void removeStatusListener(gnu.mail.treeutil.StatusListener l)
removeStatusListener in interface gnu.mail.treeutil.StatusSourcel - the status listeneraddStatusListener(gnu.mail.treeutil.StatusListener)protected void processStatusEvent(gnu.mail.treeutil.StatusEvent event)
event - the status event© Copyright 2003, 2004 The Free Software Foundation, All rights reserved