|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Service
javax.mail.Store
gnu.mail.providers.mbox.MboxStore
public final class MboxStore
The storage class implementing the Mbox mailbox file format.
Field Summary |
---|
Fields inherited from class javax.mail.Service |
---|
debug, session, url |
Constructor Summary | |
---|---|
MboxStore(Session session,
URLName urlname)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.mail.Store |
---|
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener |
Methods inherited from class javax.mail.Service |
---|
addConnectionListener, close, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MboxStore(Session session, URLName urlname)
Method Detail |
---|
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 password
AuthenticationFailedException
- on authentication failure
MessagingException
- 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 name
MessagingException
public Folder getFolder(URLName urlname) throws MessagingException
getFolder
in class Store
urlname
- a URLName denoting a folder
MessagingException
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |