|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.Service javax.mail.Store org.apache.geronimo.javamail.store.pop3.POP3Store
public class POP3Store
POP3 implementation of javax.mail.Store POP protocol spec is implemented in org.apache.geronimo.javamail.store.pop3.POP3Connection
Field Summary | |
---|---|
protected POP3ConnectionPool |
connectionPool
|
protected boolean |
debug
|
protected PrintStream |
debugStream
|
protected static int |
DEFAULT_POP3_PORT
|
protected static int |
DEFAULT_POP3_SSL_PORT
|
protected LinkedList |
openFolders
|
protected ProtocolProperties |
props
|
protected POP3RootFolder |
root
|
Fields inherited from class javax.mail.Service |
---|
session, url |
Constructor Summary | |
---|---|
|
POP3Store(Session session,
URLName name)
|
protected |
POP3Store(Session session,
URLName name,
String protocol,
int defaultPort,
boolean sslConnection)
Common constructor used by the POP3Store and POP3SSLStore classes to do common initialization of defaults. |
Method Summary | |
---|---|
void |
close()
Close the store, and any open folders associated with the store. |
protected void |
closeOpenFolders()
Close all open folders. |
protected void |
finalize()
Finalizer to perform IMAPStore() cleanup when no longer in use. |
protected POP3Connection |
getConnection()
Get a connection for the store. |
Folder |
getDefaultFolder()
Return a Folder object that represents the root of the namespace for the current user. |
Folder |
getFolder(String name)
Return the Folder corresponding to the given name. |
Folder |
getFolder(URLName url)
Return the folder identified by the URLName; the URLName must refer to this Store. |
boolean |
isConnected()
|
protected boolean |
protocolConnect(String host,
int port,
String username,
String password)
|
protected void |
releaseConnection(POP3Connection connection)
Return a connection back to the connection pool after it has been used for a request. |
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, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int DEFAULT_POP3_PORT
protected static final int DEFAULT_POP3_SSL_PORT
protected ProtocolProperties props
protected POP3ConnectionPool connectionPool
protected PrintStream debugStream
protected boolean debug
protected POP3RootFolder root
protected LinkedList openFolders
Constructor Detail |
---|
public POP3Store(Session session, URLName name)
protected POP3Store(Session session, URLName name, String protocol, int defaultPort, boolean sslConnection)
session
- The host session instance.name
- The URLName of the target.protocol
- The protocol type ("pop3"). This helps us in
retrieving protocol-specific session properties.defaultPort
- The default port used by this protocol. For pop3, this will
be 110. The default for pop3 with ssl is 995.sslConnection
- Indicates whether an SSL connection should be used to initial
contact the server. This is different from the STARTTLS
support, which switches the connection to SSL after the
initial startup.Method Detail |
---|
public Folder getDefaultFolder() throws MessagingException
getDefaultFolder
in class Store
MessagingException
- if there was a problem accessing the storepublic Folder getFolder(String name) throws MessagingException
Folder.exists()
method can be used
to determine if it is real.
getFolder
in class Store
name
- the name of the Folder to return
MessagingException
- if there was a problem accessing the storepublic Folder getFolder(URLName url) throws MessagingException
URLName.getFile()
method to determined the folder name.
getFolder
in class Store
url
-
MessagingException
- if there was a problem accessing the storeprotected boolean protocolConnect(String host, int port, String username, String password) throws MessagingException
protocolConnect
in class Service
MessagingException
Service.protocolConnect(java.lang.String, int,
java.lang.String, java.lang.String)
protected POP3Connection getConnection() throws MessagingException
MessagingException
protected void releaseConnection(POP3Connection connection) throws MessagingException
connection
- The return connection.
MessagingException
protected void closeOpenFolders()
public boolean isConnected()
isConnected
in class Service
Service.isConnected()
public void close() throws MessagingException
close
in class Service
MessagingException
protected void finalize() throws Throwable
finalize
in class Service
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |