public class POP3Store
extends Store
Constructor and Description |
---|
POP3Store(Session session,
URLName url) |
POP3Store(Session session,
URLName url,
java.lang.String name,
boolean isSSL) |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
capabilities()
Return a Map of the capabilities the server provided,
as per RFC 2449.
|
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.
|
boolean |
isSSL()
Is this POP3Store using SSL to connect to the server?
|
public POP3Store(Session session, URLName url)
public POP3Store(Session session, URLName url, java.lang.String name, boolean isSSL)
public boolean isConnected()
public void close() throws MessagingException
MessagingException
public Folder getDefaultFolder() throws MessagingException
MessagingException
public Folder getFolder(java.lang.String name) throws MessagingException
MessagingException
public Folder getFolder(URLName url) throws MessagingException
MessagingException
public java.util.Map capabilities() throws MessagingException
For example, to check if the server supports the STLS capability, use:
if (store.capabilities().containsKey("STLS")) ...
MessagingException
public boolean isSSL()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"