com.atlassian.confluence.plugins.emailgateway.polling
Class FolderUtils
java.lang.Object
com.atlassian.confluence.plugins.emailgateway.polling.FolderUtils
public class FolderUtils
- extends Object
Provides convenience methods for performing operations on JavaMail Folder
s.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderUtils
public FolderUtils()
execute
public static <T> T execute(FolderUtils.FolderWorker<T> worker)
throws javax.mail.MessagingException,
com.atlassian.mail.MailException
- Performs arbitrary on a
Folder
. This handles the tedious business of opening and closing
Folder
s, Session
s and Store
s at the appropriate time.
- Type Parameters:
T
- The return type of the worker- Parameters:
worker
- The callback providing the actual worker logic
- Returns:
- The results of the worker
- Throws:
javax.mail.MessagingException
com.atlassian.mail.MailException
Copyright © 2003-2013 Atlassian. All Rights Reserved.