org.ujmp.mail
Class ImapUtil

java.lang.Object
  extended by org.ujmp.mail.ImapUtil
All Implemented Interfaces:
Closeable

public class ImapUtil
extends Object
implements Closeable


Constructor Summary
ImapUtil(String host, String user, String password)
           
 
Method Summary
 void close()
           
 javax.mail.Folder getFolder(String folderName)
           
 MessagesMatrix getMessages(javax.mail.Folder folder)
           
 MessagesMatrix getMessages(String folderName)
           
 ListMatrix<javax.mail.Folder> getPersonalFolders()
           
 ListMatrix<javax.mail.Folder> getSharedFolders()
           
 ListMatrix<javax.mail.Folder> getSubFolders(javax.mail.Folder folder)
           
 ListMatrix<javax.mail.Folder> getSubFolders(String folderName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImapUtil

public ImapUtil(String host,
                String user,
                String password)
Method Detail

getPersonalFolders

public ListMatrix<javax.mail.Folder> getPersonalFolders()
                                                 throws Exception
Throws:
Exception

getSubFolders

public ListMatrix<javax.mail.Folder> getSubFolders(javax.mail.Folder folder)
                                            throws Exception
Throws:
Exception

getMessages

public MessagesMatrix getMessages(String folderName)
                           throws Exception
Throws:
Exception

getFolder

public javax.mail.Folder getFolder(String folderName)
                            throws Exception
Throws:
Exception

getSubFolders

public ListMatrix<javax.mail.Folder> getSubFolders(String folderName)
                                            throws Exception
Throws:
Exception

getMessages

public MessagesMatrix getMessages(javax.mail.Folder folder)
                           throws Exception
Throws:
Exception

close

public void close()
Specified by:
close in interface Closeable

getSharedFolders

public ListMatrix<javax.mail.Folder> getSharedFolders()
                                               throws Exception
Throws:
Exception


Copyright © 2010. All Rights Reserved.