MCPcopy Create free account
hub / github.com/M66B/FairEmail / Folder

Method Folder

app/src/main/java/javax/mail/Folder.java:120–137  ·  view source on GitHub ↗

Constructor that takes a Store object. @param store the Store that holds this folder

(Store store)

Source from the content-addressed store, hash-verified

118 * @param store the Store that holds this folder
119 */
120 protected Folder(Store store) {
121 this.store = store;
122
123 // create or choose the appropriate event queue
124 Session session = store.getSession();
125 String scope =
126 session.getProperties().getProperty("mail.event.scope", "folder");
127 Executor executor =
128 (Executor)session.getProperties().get("mail.event.executor");
129 if (scope.equalsIgnoreCase("application"))
130 q = EventQueue.getApplicationEventQueue(executor);
131 else if (scope.equalsIgnoreCase("session"))
132 q = session.getEventQueue();
133 else if (scope.equalsIgnoreCase("store"))
134 q = store.getEventQueue();
135 else // if (scope.equalsIgnoreCase("folder"))
136 q = new EventQueue(executor);
137 }
138
139 /**
140 * Returns the name of this Folder. <p>

Callers

nothing calls this directly

Calls 6

getPropertiesMethod · 0.95
getEventQueueMethod · 0.95
getSessionMethod · 0.45
getPropertyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected