public abstract class Store
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Socket |
connection |
protected MailSession |
session |
protected SocketFactory |
socketFactory |
Modifier | Constructor and Description |
---|---|
protected |
Store(MailSession session) |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close this store and terminate its connection.
|
abstract void |
connect()
A generic connect method that takes no parameters.
|
abstract Folder |
getDefaultFolder()
Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store.
|
abstract Folder |
getFolder(java.lang.String name)
Return the Folder object corresponding to the given name.
|
protected MailSession session
protected SocketFactory socketFactory
protected Socket connection
protected Store(MailSession session)
public abstract void connect() throws AuthenticationException, MessagingException
AuthenticationException
MessagingException
public abstract void close() throws MessagingException
MessagingException
public abstract Folder getFolder(java.lang.String name)
name
- 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.public abstract Folder getDefaultFolder()