gnu.mail.providers.pop3

Class POP3Store


public final class POP3Store
extends Store

The storage class implementing the POP3 mail protocol.
Version:
1.3
Authors:
Chris Burdess
Nic Ferrier

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 TrustManager
getTrustManager()
Returns a trust manager used for TLS negotiation.
boolean
isConnected()
Issues a NOOP to the POP server to determine whether the connection is still alive.
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, connect, getURLName, isConnected, notifyConnectionListeners, protocolConnect, queueEvent, 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

getTrustManager

protected TrustManager getTrustManager()
            throws MessagingException
Returns a trust manager used for TLS negotiation.

isConnected

public boolean isConnected()
Issues a NOOP to the POP server to determine whether the connection is still alive.
Overrides:
isConnected in interface Service

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

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved