gnu.mail.providers.mbox
Class MboxStore
- gnu.mail.treeutil.StatusSource
public final class MboxStore
implements gnu.mail.treeutil.StatusSource
The storage class implementing the Mbox mailbox file format.
void | addStatusListener(gnu.mail.treeutil.StatusListener l)- Adds a status listener to this store.
|
Folder | getDefaultFolder()- Returns the default folder.
|
Folder | getFolder(String name)- 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(String host, int port, String username, 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.
|
protected void | setURLName(URLName url)- Sets the correct form of the URLName.
|
addFolderListener, addStoreListener, getDefaultFolder, getFolder, getFolder, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener |
addConnectionListener, close, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, protocolConnect, removeConnectionListener, setConnected, setURLName, toString |
MboxStore
public MboxStore(Session session,
URLName urlname) Constructor.
addStatusListener
public void addStatusListener(gnu.mail.treeutil.StatusListener l)
Adds a status listener to this store.
The listener will be informed of state changes during potentially
lengthy procedures(opening and closing mboxes).
- addStatusListener in interface gnu.mail.treeutil.StatusSource
l - the status listener
removeStatusListener(StatusListener)
getFolder
public Folder getFolder(String name)
throws MessagingException Returns the folder with the specified filename.
- getFolder in interface Store
processStatusEvent
protected void processStatusEvent(gnu.mail.treeutil.StatusEvent event)
Processes a status event.
This dispatches the event to all the registered listeners.
event - the status event
protocolConnect
protected boolean protocolConnect(String host,
int port,
String username,
String password)
throws MessagingException There isn't a protocol to implement, so this method just returns.
- protocolConnect in interface Service
setURLName
protected void setURLName(URLName url)
Sets the correct form of the URLName.
- setURLName in interface Service