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

Exchange.getFolder

public ExchangeFolder getFolder(FolderType folderType)

Returns the logged user's folder corresponding to the specified type.

For example, to access the Inbox folder, the following code can be used:

Exchange exchange = new Exchange("hostname", "username", "password");
ExchangeFolder folder = exchange.getFolder(FolderType.Inbox); System.out.println("Inbox name is: " + folder.getDisplayName());

Returns:
the Exchange folder identified by the specified type.

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

public ExchangeFolder getFolder(String folderId)

Returns an Exchange folder identified by the specified ID or null if the folder is not found.

Returns:
the Exchange folder.

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

Community comments



Powered by JavaDocPlus