public final class MboxStore extends Store implements gnu.mail.treeutil.StatusSource
Constructor and Description |
---|
MboxStore(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 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(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.
|
protected void |
setURLName(URLName url)
Sets the correct form of the URLName.
|
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
addConnectionListener, close, connect, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, toString
protected boolean protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password) throws MessagingException
protocolConnect
in class Service
host
- 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 failuresprotected void setURLName(URLName url)
setURLName
in class Service
public Folder getDefaultFolder() throws MessagingException
getDefaultFolder
in class Store
MessagingException
public Folder getFolder(java.lang.String name) throws MessagingException
getFolder
in class Store
name
- the folder nameMessagingException
public Folder getFolder(URLName urlname) throws MessagingException
getFolder
in class Store
urlname
- a URLName denoting a folderMessagingException
public void addStatusListener(gnu.mail.treeutil.StatusListener l)
addStatusListener
in interface gnu.mail.treeutil.StatusSource
l
- the status listenerremoveStatusListener(gnu.mail.treeutil.StatusListener)
public void removeStatusListener(gnu.mail.treeutil.StatusListener l)
removeStatusListener
in interface gnu.mail.treeutil.StatusSource
l
- the status listeneraddStatusListener(gnu.mail.treeutil.StatusListener)
protected void processStatusEvent(gnu.mail.treeutil.StatusEvent event)
event
- the status event