| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private volatile TempFile | |
| private boolean | |
| pack-priv MailLogger | |
| private POP3Message[] | |
| private String | |
| private volatile boolean | |
| private volatile Protocol | |
| private int | |
| private POP3Store | store
Hides javax. |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendMessages(Message[]
array of Messages to be appended msgs)Implements abstract javax. MethodNotSupportedException
because the POP3 protocol doesn't support appending messages.
|
| private void | |
| private void | |
| private void | |
| public synchronized void | close(boolean
expunges all deleted messages if this flag is true expunge)Implements abstract javax. |
| public boolean | Returns: falseThe type of this folder. type)Implements abstract javax. false; the POP3 protocol doesn't
support creating folders.
|
| protected POP3Message | |
| public boolean | delete(boolean
also delete subfolders? recurse)Implements abstract javax. MethodNotSupportedException
because the POP3 protocol doesn't allow the INBOX to
be deleted.
|
| public boolean | Returns: true for INBOX, false otherwiseImplements abstract javax. |
| public Message[] | expunge()
Implements abstract javax. MethodNotSupportedException
because the POP3 protocol doesn't support expunging messages
without closing the folder; call the close method
with the expunge argument set to true
instead.
|
| public synchronized void | fetch(Message[]
fetch items for these messages msgs, FetchProfile the FetchProfile fp)Overrides javax. |
| protected void | |
| pack-priv TempFile | |
| public Folder | getFolder(String
name of the Folder name)Implements abstract javax. MessagingException because no POP3 folders
can contain subfolders.
|
| public String | getFullName()
Implements abstract javax. |
| public synchronized Message | getMessage(int
the message number msgno)Implements abstract javax. |
| public synchronized int | getMessageCount()
Implements abstract javax. |
| public String | |
| public Folder | getParent()
Implements abstract javax. |
| public Flags | Returns: empty Flags objectImplements abstract javax. Flags object because
the POP3 protocol doesn't support any permanent flags.
|
| pack-priv Protocol | getProtocol()
Centralize access to the Protocol object by POP3Message objects so that they will fail appropriately when the folder is closed. |
| public char | Returns: NULImplements abstract javax. |
| public synchronized int | Returns: folder sizeReturn the size of this folder, as was returned by the POP3 STAT command when this folder was opened. |
| public synchronized int[] | Returns: array of message sizesReturn the sizes of all messages in this folder, as returned by the POP3 LIST command. |
| public int | Returns: Folder.HOLDS_MESSAGESImplements abstract javax. |
| public synchronized String | |
| public boolean | Returns: falseImplements abstract javax. false; the POP3 protocol provides
no way to determine when a new message arrives.
|
| public synchronized boolean | isOpen()
Implements abstract javax. |
| public Folder[] | list(String
the match pattern pattern)Implements abstract javax. MessagingException because no POP3 folders
can contain subfolders.
|
| public synchronized InputStream | Returns: InputStream containing resultsReturn the raw results of the POP3 LIST command with no arguments. |
| protected void | notifyMessageChangedListeners(int
the MessageChangedEvent type type, Message the message that changed m)
Notify all MessageChangedListeners.
|
| public synchronized void | open(int
open the Folder READ_ONLY or READ_WRITE mode)Implements abstract javax. FolderNotFoundException unless this
folder is named "INBOX".
|
| public boolean | renameTo(Folder
a folder representing the new name for this Folder f)Implements abstract javax. MethodNotSupportedException
because the POP3 protocol doesn't support multiple folders.
|
| doneUidl | back to summary |
|---|---|
| private boolean doneUidl | |
| exists | back to summary |
|---|---|
| private boolean exists | |
| fileCache | back to summary |
|---|---|
| private volatile TempFile fileCache | |
| forceClose | back to summary |
|---|---|
| private boolean forceClose | |
| logger | back to summary |
|---|---|
| pack-priv MailLogger logger | |
| message_cache | back to summary |
|---|---|
| private POP3Message[] message_cache | |
| name | back to summary |
|---|---|
| private String name | |
| opened | back to summary |
|---|---|
| private volatile boolean opened | |
| port | back to summary |
|---|---|
| private volatile Protocol port | |
| size | back to summary |
|---|---|
| private int size | |
| store | back to summary |
|---|---|
| private POP3Store store Hides javax. | |
| total | back to summary |
|---|---|
| private int total | |
| POP3Folder | back to summary |
|---|---|
| protected POP3Folder(POP3Store store, String name) | |
| appendMessages | back to summary |
|---|---|
| public void appendMessages(Message[] msgs) throws MessagingException Implements abstract javax. Always throws
| |
| checkClosed | back to summary |
|---|---|
| private void checkClosed() throws IllegalStateException | |
| checkOpen | back to summary |
|---|---|
| private void checkOpen() throws IllegalStateException | |
| checkReadable | back to summary |
|---|---|
| private void checkReadable() throws IllegalStateException | |
| close | back to summary |
|---|---|
| public synchronized void close(boolean expunge) throws MessagingException Implements abstract javax. Doc from javax. Close this Folder. This method is valid only on open Folders. A CLOSED ConnectionEvent is delivered to any ConnectionListeners registered on this Folder. Note that the folder is closed even if this method terminates abnormally by throwing a MessagingException.
| |
| create | back to summary |
|---|---|
| public boolean create(int type) throws MessagingException Implements abstract javax. Always returns
| |
| createMessage | back to summary |
|---|---|
| protected POP3Message createMessage(Folder f, int msgno) throws MessagingException | |
| delete | back to summary |
|---|---|
| public boolean delete(boolean recurse) throws MessagingException Implements abstract javax. Always throws
| |
| exists | back to summary |
|---|---|
| public boolean exists() Implements abstract javax. Always true for the folder "INBOX", always false for any other name.
| |
| expunge | back to summary |
|---|---|
| public Message[] expunge() throws MessagingException Implements abstract javax. Always throws
| |
| fetch | back to summary |
|---|---|
| public synchronized void fetch(Message[] msgs, FetchProfile fp) throws MessagingException Overrides javax. Prefetch information about POP3 messages.
If the FetchProfile contains
| |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides javax. Close the folder when we're finalized.
| |
| getFileCache | back to summary |
|---|---|
| pack-priv TempFile getFileCache() Used by POP3Message. | |
| getFolder | back to summary |
|---|---|
| public Folder getFolder(String name) throws MessagingException Implements abstract javax. Always throws
| |
| getFullName | back to summary |
|---|---|
| public String getFullName() Implements abstract javax. Doc from javax. Returns the full name of this Folder. If the folder resides under the root hierarchy of this Store, the returned name is relative to the root. Otherwise an absolute name, starting with the hierarchy delimiter, is returned. This method can be invoked on a closed Folder. | |
| getMessage | back to summary |
|---|---|
| public synchronized Message getMessage(int msgno) throws MessagingException Implements abstract javax. Doc from javax. Get the Message object corresponding to the given message number. A Message object's message number is the relative position of this Message in its Folder. Messages are numbered starting at 1 through the total number of message in the folder. Note that the message number for a particular Message can change during a session if other messages in the Folder are deleted and the Folder is expunged. Message objects are light-weight references to the actual message that get filled up on demand. Hence Folder implementations are expected to provide light-weight Message objects. Unlike Folder objects, repeated calls to getMessage with the same message number will return the same Message object, as long as no messages in this folder have been expunged. Since message numbers can change within a session if the folder is expunged , clients are advised not to use message numbers as references to messages. Use Message objects instead.
| |
| getMessageCount | back to summary |
|---|---|
| public synchronized int getMessageCount() throws MessagingException Implements abstract javax. Will not change while the folder is open because the POP3 protocol doesn't support notification of new messages arriving in open folders.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract javax. Doc from javax. Returns the name of this Folder. This method can be invoked on a closed Folder. | |
| getParent | back to summary |
|---|---|
| public Folder getParent() Implements abstract javax. Doc from javax. Returns the parent folder of this folder. This method can be invoked on a closed Folder. If this folder is the top of a folder hierarchy, this method returns null. Note that since Folder objects are not cached, invoking this method returns a new distinct Folder object. | |
| getPermanentFlags | back to summary |
|---|---|
| public Flags getPermanentFlags() Implements abstract javax. Always returns an empty | |
| getProtocol | back to summary |
|---|---|
| pack-priv Protocol getProtocol() throws MessagingException Centralize access to the Protocol object by POP3Message objects so that they will fail appropriately when the folder is closed. | |
| getSeparator | back to summary |
|---|---|
| public char getSeparator() Implements abstract javax. Always returns a NUL character because POP3 doesn't support a hierarchy.
| |
| getSize | back to summary |
|---|---|
| public synchronized int getSize() throws MessagingException Return the size of this folder, as was returned by the POP3 STAT command when this folder was opened.
| |
| getSizes | back to summary |
|---|---|
| public synchronized int[] getSizes() throws MessagingException Return the sizes of all messages in this folder, as returned by the POP3 LIST command. Each entry in the array corresponds to a message; entry i corresponds to message number i+1.
| |
| getType | back to summary |
|---|---|
| public int getType() Implements abstract javax. Always returns Folder.HOLDS_MESSAGES.
| |
| getUID | back to summary |
|---|---|
| public synchronized String getUID(Message msg) throws MessagingException Return the unique ID string for this message, or null if not available. Uses the POP3 UIDL command.
| |
| hasNewMessages | back to summary |
|---|---|
| public boolean hasNewMessages() throws MessagingException Implements abstract javax. Always returns
| |
| isOpen | back to summary |
|---|---|
| public synchronized boolean isOpen() Implements abstract javax. Doc from javax. Indicates whether this Folder is in the 'open' state.
| |
| list | back to summary |
|---|---|
| public Folder[] list(String pattern) throws MessagingException Implements abstract javax. Always throws
| |
| listCommand | back to summary |
|---|---|
| public synchronized InputStream listCommand() throws MessagingException, IOException Return the raw results of the POP3 LIST command with no arguments.
| |
| notifyMessageChangedListeners | back to summary |
|---|---|
| protected void notifyMessageChangedListeners(int type, Message m) Overrides javax. Doc from javax. Notify all MessageChangedListeners. Folder implementations are expected to use this method to broadcast MessageChanged events. The provided implementation queues the event into an internal event queue. An event dispatcher thread dequeues events from the queue and dispatches them to registered MessageChangedListeners. Note that the event dispatching occurs in a separate thread, thus avoiding potential deadlock problems. | |
| open | back to summary |
|---|---|
| public synchronized void open(int mode) throws MessagingException Implements abstract javax. Throws
| |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(Folder f) throws MessagingException Implements abstract javax. Always throws
| |