/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor initializing folder and message msgnum; intended to be used by implementations of Folder. * * @param folder the folder that contains the message * @param msgnum the message index within the folder */ protected Message(Folder folder, int msgnum) { this.folder = folder; this.msgnum = msgnum; // make sure we copy the session information from the folder. this.session = folder.getStore().getSession(); }
/** * Constructor initializing folder and message msgnum; intended to be used by implementations of Folder. * * @param folder the folder that contains the message * @param msgnum the message index within the folder */ protected Message(Folder folder, int msgnum) { this.folder = folder; this.msgnum = msgnum; // make sure we copy the session information from the folder. this.session = folder.getStore().getSession(); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }
/** * Constructor that takes a Store object. * * @param store the Store that holds this folder */ protected Folder(Store store) { this.store = store; // create or choose the appropriate event queue Session session = store.getSession(); String scope = session.getProperties().getProperty("mail.event.scope", "folder"); Executor executor = (Executor)session.getProperties().get("mail.event.executor"); if (scope.equalsIgnoreCase("application")) q = EventQueue.getApplicationEventQueue(executor); else if (scope.equalsIgnoreCase("session")) q = session.getEventQueue(); else if (scope.equalsIgnoreCase("store")) q = store.getEventQueue(); else // if (scope.equalsIgnoreCase("folder")) q = new EventQueue(executor); }