com.sun.mail.pop3
Class POP3Store
java.lang.Object
|
+--javax.mail.Service
|
+--javax.mail.Store
|
+--com.sun.mail.pop3.POP3Store
- public class POP3Store
- extends Store
A POP3 Message Store. Contains only one folder, "INBOX".
See the com.sun.mail.pop3 package
documentation for further information on the POP3 protocol provider.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
POP3Store
public POP3Store(Session session,
URLName url)
isConnected
public boolean isConnected()
- Check whether this store is connected. Override superclass
method, to actually ping our server connection.
- Overrides:
isConnected
in class Service
close
public void close()
throws MessagingException
- Overrides:
close
in class Service
getDefaultFolder
public Folder getDefaultFolder()
throws MessagingException
- Overrides:
getDefaultFolder
in class Store
getFolder
public Folder getFolder(java.lang.String name)
throws MessagingException
- Only the name "INBOX" is supported.
- Overrides:
getFolder
in class Store
getFolder
public Folder getFolder(URLName url)
throws MessagingException
- Overrides:
getFolder
in class Store