|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Service
javax.mail.Store
gnu.mail.providers.pop3.POP3Store
public final class POP3Store
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 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, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener |
| Methods inherited from class javax.mail.Service |
|---|
addConnectionListener, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public POP3Store(Session session,
URLName urlname)
| Method Detail |
|---|
protected boolean protocolConnect(String host,
int port,
String username,
String password)
throws MessagingException
protocolConnect in class Servicehost - the name of the host to connect toport - the port to use (-1 for the default port)username - the usernamepassword - the password
AuthenticationFailedException - on authentication failure
MessagingException - for non-authentication failures
protected TrustManager getTrustManager()
throws MessagingException
MessagingException
public void close()
throws MessagingException
close in class ServiceMessagingExceptionpublic boolean isConnected()
isConnected in class Service
public Folder getDefaultFolder()
throws MessagingException
getDefaultFolder in class StoreMessagingException
public Folder getFolder(String s)
throws MessagingException
getFolder in class Stores - the folder name
MessagingException
public Folder getFolder(URLName urlname)
throws MessagingException
getFolder in class Storeurlname - a URLName denoting a folder
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||