gnu.mail.providers.mbox

Class MboxStore

public final class MboxStore extends Store implements StatusSource

The storage class implementing the Mbox mailbox file format.

Author: Chris Burdess

Constructor Summary
MboxStore(Session session, URLName urlname)
Constructor.
Method Summary
voidaddStatusListener(StatusListener l)
Adds a status listener to this store.
FoldergetDefaultFolder()
Returns the default folder.
FoldergetFolder(String name)
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.
protected voidsetURLName(URLName url)
Sets the correct form of the URLName.

Constructor Detail

MboxStore

public MboxStore(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: MboxStore

getDefaultFolder

public Folder getDefaultFolder()
Returns the default folder.

getFolder

public Folder getFolder(String name)
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: MboxStore

setURLName

protected void setURLName(URLName url)
Sets the correct form of the URLName.
©