|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.plugins.emailgateway.polling.FolderUtils
public class FolderUtils
Provides convenience methods for performing operations on JavaMail Folder
s.
Nested Class Summary | |
---|---|
static interface |
FolderUtils.FolderWorker<T>
|
Constructor Summary | |
---|---|
FolderUtils()
|
Method Summary | ||
---|---|---|
static
|
execute(FolderUtils.FolderWorker<T> worker)
Performs arbitrary on a Folder . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FolderUtils()
Method Detail |
---|
public static <T> T execute(FolderUtils.FolderWorker<T> worker) throws javax.mail.MessagingException, com.atlassian.mail.MailException
Folder
. This handles the tedious business of opening and closing
Folder
s, Session
s and Store
s at the appropriate time.
T
- The return type of the workerworker
- The callback providing the actual worker logic
javax.mail.MessagingException
com.atlassian.mail.MailException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |