Moyosoft Products | Services | Download | Contact us    
Java Bridge to Exchange
Products  >  Java Bridge to Exchange  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

Exchange.getTopFolder

public ExchangeFolder getTopFolder(String folderPath)

Returns a sub-folder of the 'Top of Information Store' folder (FolderType.MsgFolderRoot) for the specified name or path. Accepted path separators are '\' or '/'. If the specified name or path doesn't exists, null is returned. For example, the path string "Sent Items" can be used.

This method returns the same result as:
getFolder(FolderType.MsgFolderRoot).getFolders().get(folderPath);

Returns:
the Exchange folder identified by the specified name/path or null if the folder is not found.

Throws:
ExchangeServiceException   if any errors occur during the communication with Exchange.

See Also:

public ExchangeFolder getTopFolder()

Returns the 'Top of Information Store' folder of the logged user. This folder contains information sub-folders like the Inbox, Calendar, Contacts, Notes, Sent Items, Tasks, etc.

This method returns the same result as:
getFolder(FolderType.MsgFolderRoot);

Returns:
the top Exchange folder.

Throws:
ExchangeServiceException   if any errors occur during the communication with Exchange.

See Also:

Community comments



Powered by JavaDocPlus