API Reference
| Classic JavaDoc |
Exchange.getFolder
public ExchangeFolder getFolder(FolderType folderType)
public ExchangeFolder getFolder(String folderId)
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());
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