Package org.eclipse.angus.mail.pop3
Class POP3Store
java.lang.Object
jakarta.mail.Service
jakarta.mail.Store
org.eclipse.angus.mail.pop3.POP3Store
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
POP3SSLStore
A POP3 Message Store. Contains only one folder, "INBOX".
See the org.eclipse.angus.mail.pop3 package
documentation for further information on the POP3 protocol provider.
- Author:
- Bill Shannon, John Mani
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a Map of the capabilities the server provided, as per RFC 2449.voidclose()protected voidfinalize()Only the name "INBOX" is supported.booleanCheck whether this store is connected.booleanisSSL()Is this POP3Store using SSL to connect to the server?protected booleanprotocolConnect(String host, int portNum, String user, String passwd) Methods inherited from class jakarta.mail.Store
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListenerMethods inherited from class jakarta.mail.Service
addConnectionListener, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
-
Constructor Details
-
POP3Store
-
POP3Store
-
-
Method Details
-
protocolConnect
protected boolean protocolConnect(String host, int portNum, String user, String passwd) throws MessagingException - Overrides:
protocolConnectin classService- Throws:
MessagingException
-
isConnected
public boolean isConnected()Check whether this store is connected. Override superclass method, to actually ping our server connection.- Overrides:
isConnectedin classService
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classService- Throws:
MessagingException
-
getDefaultFolder
- Specified by:
getDefaultFolderin classStore- Throws:
MessagingException
-
getFolder
Only the name "INBOX" is supported.- Specified by:
getFolderin classStore- Throws:
MessagingException
-
getFolder
- Specified by:
getFolderin classStore- Throws:
MessagingException
-
capabilities
Return a Map of the capabilities the server provided, as per RFC 2449. If the server doesn't support RFC 2449, an emtpy Map is returned. The returned Map can not be modified. The key to the Map is the upper case capability name as a String. The value of the entry is the entire String capability line returned by the server.For example, to check if the server supports the STLS capability, use:
if (store.capabilities().containsKey("STLS")) ...- Returns:
- Map of capabilities
- Throws:
MessagingException- for failures- Since:
- JavaMail 1.4.3
-
isSSL
public boolean isSSL()Is this POP3Store using SSL to connect to the server?- Returns:
- true if using SSL
- Since:
- JavaMail 1.4.6
-
finalize
-