|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Folder
org.apache.geronimo.mail.AbstractFolder
org.apache.geronimo.mail.pop3.POP3Folder
Represents an Apache implementation of a POP3 folder.
Field Summary |
Fields inherited from class javax.mail.Folder |
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
Constructor Summary | |
POP3Folder(javax.mail.Store store,
javax.mail.URLName name)
Create a new POP3 folder associated with the given store |
Method Summary | |
boolean |
create(int type)
|
protected void |
doClose()
Implemented by the provider, to close the folder. |
protected void |
doDelete(int id)
Implemented by subclasses to actually delete a message from the store. |
protected javax.mail.Message |
doGetMessage(int id)
Implemented by subclasses to actually load a message from the store. |
protected void |
doOpen(int newMode)
Implemented by subclasses to perform a rename operation. |
protected boolean |
doRenameTo(javax.mail.Folder newName)
Implemented by subclasses to perform a rename operation. |
protected void |
doRenumberMessageTo(javax.mail.Message message,
int id)
Renumber message with new ID after an expunge occurs. |
boolean |
exists()
|
javax.mail.Folder |
getFolder(String name)
|
int |
getMessageCount()
|
javax.mail.Folder |
getParent()
|
javax.mail.Flags |
getPermanentFlags()
|
boolean |
isOpen()
|
Methods inherited from class org.apache.geronimo.mail.AbstractFolder |
appendMessages, close, delete, expunge, getFullName, getMessage, getName, getSeparator, getType, hasNewMessages, list, open, renameTo |
Methods inherited from class javax.mail.Folder |
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, getURLName, isSubscribed, list, listSubscribed, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public POP3Folder(javax.mail.Store store, javax.mail.URLName name)
store
- the Store
that this folder is a part ofname
- the name of this folderMethod Detail |
public boolean create(int type) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void doClose() throws javax.mail.MessagingException
AbstractFolder
doClose
in class AbstractFolder
javax.mail.MessagingException
- if an error occurs during closure.protected void doDelete(int id) throws javax.mail.MessagingException
AbstractFolder
doDelete
in class AbstractFolder
id
- the message number to delete
javax.mail.MessagingException
- in case of any errorprotected javax.mail.Message doGetMessage(int id) throws javax.mail.MessagingException
AbstractFolder
doGetMessage
in class AbstractFolder
id
- the message number to use
javax.mail.MessagingException
- in case of any errorprotected boolean doRenameTo(javax.mail.Folder newName)
AbstractFolder
doRenameTo
in class AbstractFolder
newName
- the new name to use
protected void doRenumberMessageTo(javax.mail.Message message, int id) throws javax.mail.MessagingException
AbstractFolder
protected void doRenumberMessageTo(Message message, int id) throws MessagingException { ((POP3Message)message).setMessageNumber(id); }Note that this cannot be done generically in the superclass since there is no way of making the
setMessageNumber()
method visible to this class without
violating the JavaMail spec.
doRenumberMessageTo
in class AbstractFolder
message
- the message to renumberid
- the message id
javax.mail.MessagingException
public boolean exists() throws javax.mail.MessagingException
javax.mail.MessagingException
public javax.mail.Folder getFolder(String name) throws javax.mail.MessagingException
javax.mail.MessagingException
public int getMessageCount() throws javax.mail.MessagingException
javax.mail.MessagingException
public javax.mail.Folder getParent() throws javax.mail.MessagingException
javax.mail.MessagingException
public javax.mail.Flags getPermanentFlags()
public boolean isOpen()
protected void doOpen(int newMode) throws javax.mail.MessagingException
AbstractFolder
doOpen
in class AbstractFolder
javax.mail.MessagingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |