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

Method Session

app/src/main/java/javax/mail/Session.java:237–257  ·  view source on GitHub ↗
(Properties props, Authenticator authenticator)

Source from the content-addressed store, hash-verified

235
236 // Constructor is not public
237 private Session(Properties props, Authenticator authenticator) {
238 this.props = props;
239 this.authenticator = authenticator;
240
241 if (Boolean.valueOf(props.getProperty("mail.debug")).booleanValue())
242 debug = true;
243
244 initLogger();
245 logger.log(Level.CONFIG, "Jakarta Mail version {0}", Version.version);
246
247 // get the Class associated with the Authenticator
248 Class<?> cl;
249 if (authenticator != null)
250 cl = authenticator.getClass();
251 else
252 cl = this.getClass();
253 // load the resources
254 loadProviders(cl);
255 loadAddressMap(cl);
256 q = new EventQueue((Executor)props.get("mail.event.executor"));
257 }
258
259 private final synchronized void initLogger() {
260 logger = new MailLogger(this.getClass(), "DEBUG", debug, getDebugOut());

Callers

nothing calls this directly

Calls 6

initLoggerMethod · 0.95
loadProvidersMethod · 0.95
loadAddressMapMethod · 0.95
getPropertyMethod · 0.45
logMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected