Package totalcross.net.mail
Class POP3Store
- java.lang.Object
-
- totalcross.net.mail.Store
-
- totalcross.net.mail.POP3Store
-
public class POP3Store extends Store
A POP3 Message Store. Contains only one folder, "INBOX".- Since:
- TotalCross 1.13
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROOT-
Fields inherited from class totalcross.net.mail.Store
connection, session, socketFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPOP3Store(MailSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this store and terminate its connection.voidconnect()A generic connect method that takes no parameters.FoldergetDefaultFolder()Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store.FoldergetFolder(java.lang.String name)Only the name "INBOX" is supported.
-
-
-
Field Detail
-
ROOT
public static final java.lang.String ROOT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
POP3Store
protected POP3Store(MailSession session)
-
-
Method Detail
-
connect
public void connect() throws AuthenticationException, MessagingExceptionDescription copied from class:StoreA generic connect method that takes no parameters. Subclasses can implement the appropriate authentication schemes. Subclasses that need additional information might want to use some properties or might get it interactively. Most clients should just call this method to connect to the store.- Specified by:
connectin classStore- Throws:
AuthenticationExceptionMessagingException
-
getDefaultFolder
public Folder getDefaultFolder()
Description copied from class:StoreReturns a Folder object that represents the 'root' of the default namespace presented to the user by the Store.- Specified by:
getDefaultFolderin classStore- Returns:
- the root Folder
-
getFolder
public Folder getFolder(java.lang.String name)
Only the name "INBOX" is supported.
-
close
public void close() throws MessagingExceptionDescription copied from class:StoreClose this store and terminate its connection. Any Messaging components (Folders, Messages, etc.) belonging to this service are invalid after this store is closed. Note that the store is closed even if this method terminates abnormally by throwing a MessagingException.- Specified by:
closein classStore- Throws:
MessagingException
-
-