gnu.mail.providers.pop3

Class POP3Store


public final class POP3Store
extends Store

The storage class implementing the POP3 mail protocol.

Field Summary

Fields inherited from class javax.mail.Service

debug, session, url

Constructor Summary

POP3Store(Session session, URLName urlname)
Constructor.

Method Summary

void
close()
Closes the connection.
Folder
getDefaultFolder()
Returns the root folder.
Folder
getFolder(String s)
Returns the folder with the specified name.
Folder
getFolder(URLName urlname)
Returns the folder whose name is the file part of the specified URLName.
protected boolean
protocolConnect(String host, int port, String username, String password)
Connects to the POP3 server and authenticates with the specified parameters.

Methods inherited from class javax.mail.Store

addFolderListener, addStoreListener, getDefaultFolder, getFolder, getFolder, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener

Methods inherited from class javax.mail.Service

addConnectionListener, close, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, protocolConnect, removeConnectionListener, setConnected, setURLName, toString

Constructor Details

POP3Store

public POP3Store(Session session,
                 URLName urlname)
Constructor.

Method Details

close

public void close()
            throws MessagingException
Closes the connection.
Overrides:
close in interface Service


getDefaultFolder

public Folder getDefaultFolder()
            throws MessagingException
Returns the root folder.
Overrides:
getDefaultFolder in interface Store


getFolder

public Folder getFolder(String s)
            throws MessagingException
Returns the folder with the specified name.
Overrides:
getFolder in interface Store


getFolder

public Folder getFolder(URLName urlname)
            throws MessagingException
Returns the folder whose name is the file part of the specified URLName.
Overrides:
getFolder in interface Store


protocolConnect

protected boolean protocolConnect(String host,
                                  int port,
                                  String username,
                                  String password)
            throws MessagingException
Connects to the POP3 server and authenticates with the specified parameters.
Overrides:
protocolConnect in interface Service