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

Exchange.getRootFolder

public ExchangeFolder getRootFolder(String folderPath)

Returns a sub-folder of the root folder (FolderType.Root) 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 "Top of Information Store/Sent Items" can be used.

This method returns the same result as:
getFolder(FolderType.Root).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 getRootFolder()

Returns the logged user's root folder. This folder contains all of the user's sub-folders.

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

Returns:
the root Exchange folder.

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

See Also:

Community comments



Powered by JavaDocPlus