|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Folder
com.sun.mail.imap.IMAPFolder
com.sun.mail.imap.DefaultFolder
public class DefaultFolder
This class
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.mail.imap.IMAPFolder |
---|
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommand |
Field Summary |
---|
Fields inherited from class com.sun.mail.imap.IMAPFolder |
---|
attributes, availableFlags, exists, fullName, isNamespace, messageCache, messageCacheLock, name, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATOR |
Fields inherited from class javax.mail.Folder |
---|
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
Fields inherited from interface javax.mail.UIDFolder |
---|
LASTUID |
Constructor Summary | |
---|---|
protected |
DefaultFolder(IMAPStore store)
|
Method Summary | |
---|---|
void |
appendMessages(javax.mail.Message[] msgs)
Append the given messages into this folder. |
boolean |
delete(boolean recurse)
Delete this folder. |
javax.mail.Message[] |
expunge()
Expunge all messages marked as DELETED. |
javax.mail.Folder |
getFolder(java.lang.String name)
Get the named subfolder. |
java.lang.String |
getName()
Get the name of this folder. |
javax.mail.Folder |
getParent()
Get this folder's parent. |
boolean |
hasNewMessages()
Check whether this folder has new messages. |
javax.mail.Folder[] |
list(java.lang.String pattern)
List all subfolders matching the specified pattern. |
javax.mail.Folder[] |
listSubscribed(java.lang.String pattern)
List all subscribed subfolders matching the specified pattern. |
boolean |
renameTo(javax.mail.Folder f)
Rename this folder. |
Methods inherited from class com.sun.mail.imap.IMAPFolder |
---|
addACL, addMessages, addRights, appendUIDMessages, close, copyMessages, create, doCommand, doCommandIgnoreFailure, doOptionalCommand, doProtocolCommand, exists, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getFullName, getMessage, getMessageByUID, getMessageCount, getMessagesByUID, getMessagesByUID, getNewMessageCount, getPermanentFlags, getQuota, getSeparator, getStoreProtocol, getType, getUID, getUIDNext, getUIDValidity, getUnreadMessageCount, handleResponse, idle, isOpen, isSubscribed, listRights, myRights, open, releaseStoreProtocol, removeACL, removeRights, search, search, setFlags, setQuota, setSubscribed |
Methods inherited from class javax.mail.Folder |
---|
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, finalize, getMessages, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, setFlags, setFlags, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DefaultFolder(IMAPStore store)
Method Detail |
---|
public java.lang.String getName()
IMAPFolder
getName
in class IMAPFolder
public javax.mail.Folder getParent()
IMAPFolder
getParent
in class IMAPFolder
public javax.mail.Folder[] list(java.lang.String pattern) throws javax.mail.MessagingException
IMAPFolder
list
in class IMAPFolder
pattern
- the match pattern
javax.mail.MessagingException
Folder.listSubscribed(java.lang.String)
public javax.mail.Folder[] listSubscribed(java.lang.String pattern) throws javax.mail.MessagingException
IMAPFolder
listSubscribed
in class IMAPFolder
pattern
- the match pattern
javax.mail.MessagingException
Folder.list(java.lang.String)
public boolean hasNewMessages() throws javax.mail.MessagingException
IMAPFolder
hasNewMessages
in class IMAPFolder
javax.mail.MessagingException
public javax.mail.Folder getFolder(java.lang.String name) throws javax.mail.MessagingException
IMAPFolder
getFolder
in class IMAPFolder
name
- name of the Folder
javax.mail.MessagingException
public boolean delete(boolean recurse) throws javax.mail.MessagingException
IMAPFolder
delete
in class IMAPFolder
javax.mail.MessagingException
FolderEvent
public boolean renameTo(javax.mail.Folder f) throws javax.mail.MessagingException
IMAPFolder
renameTo
in class IMAPFolder
f
- a folder representing the new name for this Folder
javax.mail.MessagingException
FolderEvent
public void appendMessages(javax.mail.Message[] msgs) throws javax.mail.MessagingException
IMAPFolder
appendMessages
in class IMAPFolder
msgs
- array of Messages to be appended
javax.mail.MessagingException
- if the append failed.public javax.mail.Message[] expunge() throws javax.mail.MessagingException
IMAPFolder
expunge
in class IMAPFolder
javax.mail.MessagingException
Message.isExpunged()
,
MessageCountEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |