Example usage for javax.mail.event FolderEvent CREATED

List of usage examples for javax.mail.event FolderEvent CREATED

Introduction

In this page you can find the example usage for javax.mail.event FolderEvent CREATED.

Prototype

int CREATED

To view the source code for javax.mail.event FolderEvent CREATED.

Click Source Link

Document

The folder was created.

Usage

From source file:org.sourceforge.net.javamail4ews.store.EwsFolder.java

@Override
public boolean create(int type) throws MessagingException {
    try {//from   www .j ava 2  s .c om
        folder.save(parentFolder.getId());
        notifyFolderListeners(FolderEvent.CREATED);
        return true;
    } catch (Exception e) {
        throw new MessagingException(e.getMessage(), e);
    }
}