| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| private Map | |
| private int | |
| pack-priv volatile boolean | |
| pack-priv volatile File | |
| pack-priv volatile boolean | |
| pack-priv volatile boolean | |
| private String | |
| private boolean | |
| pack-priv volatile boolean | |
| private MailLogger | |
| pack-priv volatile Constructor | |
| private String | |
| private String | |
| private Protocol | |
| private int | |
| private POP3Folder | |
| private boolean | |
| pack-priv volatile boolean | |
| pack-priv volatile boolean | |
| pack-priv volatile boolean | |
| private String | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: Map of capabilitiesReturn a Map of the capabilities the server provided, as per RFC 2449. |
| private void | |
| private static IOException | |
| public synchronized void | close()
Overrides javax. Implements java. |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| protected void | finalize()
Overrides javax. |
| private final synchronized boolean | |
| public Folder | getDefaultFolder()
Implements abstract javax. |
| public Folder | getFolder(String
The name of the Folder. In some Stores, name can
be an absolute path if it starts with the
hierarchy delimiter. Else it is interpreted
relative to the 'root' of this namespace. name)Implements abstract javax. |
| public Folder | getFolder(URLName
URLName that denotes a folder url)Implements abstract javax. |
| pack-priv synchronized Protocol | |
| pack-priv synchronized Session | |
| public synchronized boolean | |
| private static boolean | |
| public synchronized boolean | |
| protected synchronized boolean | protocolConnect(String
the name of the host to connect to host, int the port to use (-1 means use default port) portNum, String the name of the user to login as user, String the user's password passwd)Overrides javax. |
| cacheWriteTo | back to summary |
|---|---|
| pack-priv volatile boolean cacheWriteTo | |
| capabilities | back to summary |
|---|---|
| private Map<String, String> capabilities | |
| defaultPort | back to summary |
|---|---|
| private int defaultPort | |
| disableTop | back to summary |
|---|---|
| pack-priv volatile boolean disableTop | |
| fileCacheDir | back to summary |
|---|---|
| pack-priv volatile File fileCacheDir | |
| finalizeCleanClose | back to summary |
|---|---|
| pack-priv volatile boolean finalizeCleanClose | |
| forgetTopHeaders | back to summary |
|---|---|
| pack-priv volatile boolean forgetTopHeaders | |
| host | back to summary |
|---|---|
| private String host | |
| isSSL | back to summary |
|---|---|
| private boolean isSSL | |
| keepMessageContent | back to summary |
|---|---|
| pack-priv volatile boolean keepMessageContent | |
| logger | back to summary |
|---|---|
| private MailLogger logger | |
| messageConstructor | back to summary |
|---|---|
| pack-priv volatile Constructor<?> messageConstructor | |
| name | back to summary |
|---|---|
| private String name | |
| passwd | back to summary |
|---|---|
| private String passwd | |
| port | back to summary |
|---|---|
| private Protocol port | |
| portNum | back to summary |
|---|---|
| private int portNum | |
| portOwner | back to summary |
|---|---|
| private POP3Folder portOwner | |
| requireStartTLS | back to summary |
|---|---|
| private boolean requireStartTLS | |
| rsetBeforeQuit | back to summary |
|---|---|
| pack-priv volatile boolean rsetBeforeQuit | |
| supportsUidl | back to summary |
|---|---|
| pack-priv volatile boolean supportsUidl | |
| useFileCache | back to summary |
|---|---|
| pack-priv volatile boolean useFileCache | |
| user | back to summary |
|---|---|
| private String user | |
| useStartTLS | back to summary |
|---|---|
| private boolean useStartTLS | |
| usingSSL | back to summary |
|---|---|
| private boolean usingSSL | |
| POP3Store | back to summary |
|---|---|
| public POP3Store(Session session, URLName url) | |
| POP3Store | back to summary |
|---|---|
| public POP3Store(Session session, URLName url, String name, boolean isSSL) | |
| capabilities | back to summary |
|---|---|
| public Map Return a Map of the capabilities the server provided, as per RFC 2449. If the server doesn't support RFC 2449, an emtpy Map is returned. The returned Map can not be modified. The key to the Map is the upper case capability name as a String. The value of the entry is the entire String capability line returned by the server.
For example, to check if the server supports the STLS capability, use:
| |
| checkConnected | back to summary |
|---|---|
| private void checkConnected() throws MessagingException | |
| cleanupAndThrow | back to summary |
|---|---|
| private static IOException cleanupAndThrow(Protocol p, IOException ife) | |
| close | back to summary |
|---|---|
| public synchronized void close() throws MessagingException Overrides javax. Implements java. Doc from javax. Close this service and terminate its connection. A close ConnectionEvent is delivered to any ConnectionListeners. Any Messaging components (Folders, Messages, etc.) belonging to this service are invalid after this service is closed. Note that the service is closed even if this method terminates abnormally by throwing a MessagingException.
This implementation uses
| |
| close | back to summary |
|---|---|
| pack-priv synchronized void close(boolean force) throws MessagingException | |
| closePort | back to summary |
|---|---|
| pack-priv synchronized void closePort(POP3Folder owner) | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides javax. Doc from javax. Stop the event dispatcher thread so the queue can be garbage collected.
| |
| getBoolProp | back to summary |
|---|---|
| private final synchronized boolean getBoolProp(String prop) Get the value of a boolean property. Print out the value if logging is enabled. | |
| getDefaultFolder | back to summary |
|---|---|
| public Folder getDefaultFolder() throws MessagingException Implements abstract javax. Doc from javax. Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store.
| |
| getFolder | back to summary |
|---|---|
| public Folder getFolder(String name) throws MessagingException Implements abstract javax. Only the name "INBOX" is supported.
| |
| getFolder | back to summary |
|---|---|
| public Folder getFolder(URLName url) throws MessagingException Implements abstract javax. Doc from javax. Return a closed Folder object, corresponding to the given URLName. The store specified in the given URLName should refer to this Store object.
Implementations of this method may obtain the name of the
actual folder using the
| |
| getPort | back to summary |
|---|---|
| pack-priv synchronized Protocol getPort(POP3Folder owner) throws IOException | |
| getSession | back to summary |
|---|---|
| pack-priv synchronized Session getSession() Hides javax. Get a reference to the session. | |
| isConnected | back to summary |
|---|---|
| public synchronized boolean isConnected() Overrides javax. Check whether this store is connected. Override superclass method, to actually ping our server connection.
| |
| isRecoverable | back to summary |
|---|---|
| private static boolean isRecoverable(Throwable t) | |
| isSSL | back to summary |
|---|---|
| public synchronized boolean isSSL() Is this POP3Store using SSL to connect to the server?
| |
| protocolConnect | back to summary |
|---|---|
| protected synchronized boolean protocolConnect(String host, int portNum, String user, String passwd) throws MessagingException Overrides javax. Doc from javax. The service implementation should override this method to
perform the actual protocol-specific connection attempt.
The default implementation of the
The
The
| |