Java Code Examples for javax.mail.Session#getDebug()

The following examples show how to use javax.mail.Session#getDebug() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MailLogger.java    From FairEmail with GNU General Public License v3.0 2 votes vote down vote up
/**
    * 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());
   }
 
Example 2
Source File: MailLogger.java    From FairEmail with GNU General Public License v3.0 2 votes vote down vote up
/**
    * 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());
   }