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.


Constructor Summary
POP3Store(Session session, URLName url)
           
 
Method Summary
 void close()
           
 Folder getDefaultFolder()
           
 Folder getFolder(java.lang.String name)
          Only the name "INBOX" is supported.
 Folder getFolder(URLName url)
           
 boolean isConnected()
          Check whether this store is connected.
 
Methods inherited from class javax.mail.Store
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, removeFolderListener, removeStoreListener
 
Methods inherited from class javax.mail.Service
addConnectionListener, connect, connect, connect, getURLName, removeConnectionListener, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

POP3Store

public POP3Store(Session session,
                 URLName url)
Method Detail

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