⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.providers.maildir

Class MaildirStore

java.lang.Object
|
+--javax.mail.Service
   |
   +--javax.mail.Store
      |
      +--gnu.mail.providers.maildir.MaildirStore

All Implemented Interfaces:
StatusSource


public final class MaildirStore
extends Store
implements StatusSource

The storage class implementing the Maildir mailbox format.
Author:

Constructor Summary

MaildirStore(Session session, URLName urlname)

Constructor.

Method Summary

void

addStatusListener(StatusListener l)

Adds a status listener to this store.

Folder

getDefaultFolder()

Returns the default folder.

Folder

getFolder(String filename)

Returns the folder with the specified filename.

Folder

getFolder(URLName urlname)

Returns the folder specified by the filename of the URLName.

void

processStatusEvent(StatusEvent event)

Processes a status event.

boolean

protocolConnect(String host, int port, String username, String password)

There isn't a protocol to implement, so this method just returns.

void

removeStatusListener(StatusListener l)

Removes a status listener from this store.

Constructor Details

MaildirStore

public MaildirStore(Session session, URLName urlname)

Constructor.

Parameters:
session
urlname

Method Details

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:
removeStatusListener

getDefaultFolder

public Folder getDefaultFolder()

Returns the default folder.


getFolder

public Folder getFolder(String filename)

Returns the folder with the specified filename.

Parameters:
filename

getFolder

public Folder getFolder(URLName urlname)

Returns the folder specified by the filename of the URLName.

Parameters:
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.

Parameters:
host
port
username
password

removeStatusListener

public void removeStatusListener(StatusListener l)

Removes a status listener from this store.

Parameters:
l - the status listener
See Also:
addStatusListener