org.apache.james.mailrepository.javamail
Interface FolderInterface
- All Known Subinterfaces:
- UIDPlusFolder
- All Known Implementing Classes:
- FolderAdapter, UIDPlusFolderAdapter
public interface FolderInterface
Interface to javax.mail.Folder functionality to be able to replace
implementation or using Mocks when testing
getMessages
javax.mail.Message[] getMessages()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.getMessages()
getMessage
javax.mail.Message getMessage(int no)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.getMessage(int)
getMessageCount
int getMessageCount()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.getMessageCount()
appendMessages
void appendMessages(javax.mail.Message[] messages)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.appendMessages(Message[])
isOpen
boolean isOpen()
- See Also:
Folder.isOpen()
open
void open(int status)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.open(int)
close
void close(boolean b)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.close(boolean)
exists
boolean exists()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.exists()
create
boolean create(int holds_messages)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.create(int)
getType
int getType()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.getType()
getFullName
java.lang.String getFullName()
- See Also:
Folder.getFullName()
expunge
javax.mail.Message[] expunge()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.expunge()
getUnreadMessageCount
int getUnreadMessageCount()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.getUnreadMessageCount()
getNewMessageCount
int getNewMessageCount()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.getNewMessageCount()
getPermanentFlags
javax.mail.Flags getPermanentFlags()
- See Also:
Folder.getPermanentFlags()
getName
java.lang.String getName()
- See Also:
Folder.getName()
list
FolderInterface[] list(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.list(String)
delete
boolean delete(boolean recurse)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.delete(boolean)
renameTo
boolean renameTo(javax.mail.Folder destination)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
- See Also:
Folder.renameTo(Folder)
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.