|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.mail.Service
javax.mail.Store
com.sun.mail.mbox.MboxStore
public class MboxStore
| Field Summary |
|---|
| Fields inherited from class javax.mail.Service |
|---|
debug, session, url |
| Constructor Summary | |
|---|---|
MboxStore(javax.mail.Session session,
javax.mail.URLName url)
|
|
| Method Summary | |
|---|---|
javax.mail.Folder |
getDefaultFolder()
Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store. |
javax.mail.Folder |
getFolder(java.lang.String name)
Return the Folder object corresponding to the given name. |
javax.mail.Folder |
getFolder(javax.mail.URLName url)
Return a closed Folder object, corresponding to the given URLName. |
protected boolean |
protocolConnect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String passwd)
since we do not have any authentication to do and we do not want a dialog put up asking the user for a password we always succeed in connecting. |
protected void |
setURLName(javax.mail.URLName url)
Set the URLName representing this service. |
| 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, connect, finalize, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MboxStore(javax.mail.Session session,
javax.mail.URLName url)
| Method Detail |
|---|
protected boolean protocolConnect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String passwd)
throws javax.mail.MessagingException
protocolConnect in class javax.mail.Servicehost - the name of the host to connect toport - the port to use (-1 means use default port)user - the name of the user to login aspasswd - the user's password
javax.mail.MessagingException - for non-authentication failuresprotected void setURLName(javax.mail.URLName url)
javax.mail.Serviceurl field
after a service has successfully connected.
Subclasses should only override this method if their
URL does not follow the standard format. In particular,
subclasses should override this method if their URL
does not require all the possible fields supported by
URLName; a new URLName should
be constructed with any unneeded fields removed.
The implementation in the Service class simply sets the
url field.
setURLName in class javax.mail.ServiceURLName
public javax.mail.Folder getDefaultFolder()
throws javax.mail.MessagingException
javax.mail.Store
getDefaultFolder in class javax.mail.Storejavax.mail.MessagingException
public javax.mail.Folder getFolder(java.lang.String name)
throws javax.mail.MessagingException
javax.mail.Storeexists()
method on the folder object indicates whether this folder really
exists. Folder objects are not cached by the Store, so invoking this method on the same name multiple times will return that many distinct Folder objects.
getFolder in class javax.mail.Storename - The name of the Folder. In some Stores, name can
be an absolute path if it starts with the
hierarchy delimiter. Else it is interpreted
relative to the 'root' of this namespace.
javax.mail.MessagingExceptionFolder.exists(),
Folder.create(int)
public javax.mail.Folder getFolder(javax.mail.URLName url)
throws javax.mail.MessagingException
javax.mail.Store
Implementations of this method may obtain the name of the
actual folder using the getFile() method on
URLName, and use that name to create the folder.
getFolder in class javax.mail.Storeurl - URLName that denotes a folder
javax.mail.MessagingExceptionURLName
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||