/** * Construct a new MailLogger using the specified Logger name and * debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream * from the Session. * * @param name the Logger name * @param prefix the prefix for debug output, or null for none * @param session where to get the debug flag and PrintStream */ public MailLogger(String name, String prefix, Session session) { this(name, prefix, session.getDebug(), session.getDebugOut()); }
/** * Construct a new MailLogger using the specified class' package * name as the Logger name and the specified * debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream * from the Session. * * @param clazz the Logger name is the package name of this class * @param prefix the prefix for debug output, or null for none * @param session where to get the debug flag and PrintStream */ public MailLogger(Class<?> clazz, String prefix, Session session) { this(clazz, prefix, session.getDebug(), session.getDebugOut()); }
/** * Construct a new MailLogger using the specified Logger name and * debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream * from the Session. * * @param name the Logger name * @param prefix the prefix for debug output, or null for none * @param session where to get the debug flag and PrintStream */ @Deprecated public MailLogger(String name, String prefix, Session session) { this(name, prefix, session.getDebug(), session.getDebugOut()); }
private final synchronized void initLogger() { logger = new MailLogger(this.getClass(), "DEBUG", debug, getDebugOut()); }
private final synchronized void initLogger() { logger = new MailLogger(this.getClass(), "DEBUG", debug, getDebugOut()); }
/** * Construct a new MailLogger using the specified class' package * name as the Logger name and the specified * debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream * from the Session. * * @param clazz the Logger name is the package name of this class * @param prefix the prefix for debug output, or null for none * @param session where to get the debug flag and PrintStream */ @Deprecated public MailLogger(Class<?> clazz, String prefix, Session session) { this(clazz, prefix, session.getDebug(), session.getDebugOut()); }
/** * Create an IdleManager. The Session is used only to configure * debugging output. The Executor is used to create the * "select" thread. * * @param session the Session containing configuration information * @param es the Executor used to create threads * @exception IOException for Selector failures */ public IdleManager(Session session, Executor es) throws IOException { this.es = es; logger = new MailLogger(this.getClass(), "DEBUG IMAP", session.getDebug(), session.getDebugOut()); selector = Selector.open(); es.execute(new Runnable() { @Override public void run() { logger.fine("IdleManager select starting"); try { running = true; select(); } finally { running = false; logger.fine("IdleManager select terminating"); } } }); }
protected POP3Folder(POP3Store store, String name) { super(store); this.name = name; this.store = store; if (name.equalsIgnoreCase("INBOX")) exists = true; logger = new MailLogger(this.getClass(), "DEBUG POP3", store.getSession().getDebug(), store.getSession().getDebugOut()); }
this.separator = separator; logger = new MailLogger(this.getClass(), "DEBUG IMAP", store.getSession().getDebug(), store.getSession().getDebugOut()); connectionPoolLogger = store.getConnectionPoolLogger();
this.name = name; logger = new MailLogger(this.getClass(), "DEBUG POP3", session.getDebug(), session.getDebugOut());
session.getDebug(), session.getDebugOut()); traceLogger = logger.getSubLogger("protocol", null); noauthdebug = !PropUtil.getBooleanProperty(props,
logger = new MailLogger(this.getClass(), "DEBUG " + name.toUpperCase(Locale.ENGLISH), session.getDebug(), session.getDebugOut());
/** * Construct a new MailLogger using the specified Logger name and * debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream * from the Session. * * @param name the Logger name * @param prefix the prefix for debug output, or null for none * @param session where to get the debug flag and PrintStream */ @Deprecated public MailLogger(String name, String prefix, Session session) { this(name, prefix, session.getDebug(), session.getDebugOut()); }
/** * Construct a new MailLogger using the specified Logger name and * debug prefix (e.g., "DEBUG"). Get the debug flag and PrintStream * from the Session. * * @param name the Logger name * @param prefix the prefix for debug output, or null for none * @param session where to get the debug flag and PrintStream */ @Deprecated public MailLogger(String name, String prefix, Session session) { this(name, prefix, session.getDebug(), session.getDebugOut()); }
void close() throws Exception { try { socket.close(); if (session.getDebug()) { session.getDebugOut().println("Connection successfuly closed " + this.toString()); } } catch (IOException e) { Exception ex = new Exception("Error closing connection " + this.toString(), e); throw ex; } }
protected POP3Folder(POP3Store store, String name) { super(store); this.name = name; this.store = store; if (name.equalsIgnoreCase("INBOX")) exists = true; logger = new MailLogger(this.getClass(), "DEBUG POP3", store.getSession().getDebug(), store.getSession().getDebugOut()); }
protected POP3Folder(POP3Store store, String name) { super(store); this.name = name; this.store = store; if (name.equalsIgnoreCase("INBOX")) exists = true; logger = new MailLogger(this.getClass(), "DEBUG POP3", store.getSession().getDebug(), store.getSession().getDebugOut()); }
protected POP3Folder(POP3Store store, String name) { super(store); this.name = name; this.store = store; if (name.equalsIgnoreCase("INBOX")) exists = true; logger = new MailLogger(this.getClass(), "DEBUG POP3", store.getSession().getDebug(), store.getSession().getDebugOut()); }
protected POP3Folder(POP3Store store, String name) { super(store); this.name = name; this.store = store; if (name.equalsIgnoreCase("INBOX")) exists = true; logger = new MailLogger(this.getClass(), "DEBUG POP3", store.getSession().getDebug(), store.getSession().getDebugOut()); }
protected POP3Folder(POP3Store store, String name) { super(store); this.name = name; this.store = store; if (name.equalsIgnoreCase("INBOX")) exists = true; logger = new MailLogger(this.getClass(), "DEBUG POP3", store.getSession().getDebug(), store.getSession().getDebugOut()); }