gnu.mail.providers.maildir

Class MaildirStore

public final class MaildirStore extends Store implements StatusSource

The storage class implementing the Maildir mailbox format.

Author: Chris Burdess

Constructor Summary
MaildirStore(Session session, URLName urlname)
Constructor.
Method Summary
voidaddStatusListener(StatusListener l)
Adds a status listener to this store.
FoldergetDefaultFolder()
Returns the default folder.
FoldergetFolder(String filename)
Returns the folder with the specified filename.
FoldergetFolder(URLName urlname)
Returns the folder specified by the filename of the URLName.
protected voidprocessStatusEvent(StatusEvent event)
Processes a status event.
protected booleanprotocolConnect(String host, int port, String username, String password)
There isn't a protocol to implement, so this method just returns.
voidremoveStatusListener(StatusListener l)
Removes a status listener from this store.

Constructor Detail

MaildirStore

public MaildirStore(Session session, URLName urlname)
Constructor.

Method Detail

addStatusListener

public void addStatusListener(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).

Parameters: l the status listener

See Also: MaildirStore

getDefaultFolder

public Folder getDefaultFolder()
Returns the default folder.

getFolder

public Folder getFolder(String filename)
Returns the folder with the specified filename.

getFolder

public Folder getFolder(URLName urlname)
Returns the folder specified by the filename of the URLName.

processStatusEvent

protected void processStatusEvent(StatusEvent event)
Processes a status event. This dispatches the event to all the registered listeners.

Parameters: event the status event

protocolConnect

protected boolean protocolConnect(String host, int port, String username, String password)
There isn't a protocol to implement, so this method just returns.

removeStatusListener

public void removeStatusListener(StatusListener l)
Removes a status listener from this store.

Parameters: l the status listener

See Also: MaildirStore

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved