Class MailSessionBuilder.AbstractFrom<F extends MailSessionBuilder.AbstractFrom>

java.lang.Object
org.nuxeo.mail.MailSessionBuilder.AbstractFrom<F>
All Implemented Interfaces:
MailSessionBuilder.FromBuilder
Direct Known Subclasses:
MailSessionBuilder.FromJndi, MailSessionBuilder.FromProperties
Enclosing class:
MailSessionBuilder

protected abstract static class MailSessionBuilder.AbstractFrom<F extends MailSessionBuilder.AbstractFrom> extends Object implements MailSessionBuilder.FromBuilder
  • Field Details

    • debug

      protected boolean debug
  • Constructor Details

    • AbstractFrom

      protected AbstractFrom()
  • Method Details

    • debug

      public F debug()
      Enables debug mode for built session.
      Returns:
      this builder
      Implementation Note:
      mail.debug in nuxeo.conf takes precedence if it's true.
    • build

      public javax.mail.Session build()
      Specified by:
      build in interface MailSessionBuilder.FromBuilder
    • retrieveSession

      protected abstract javax.mail.Session retrieveSession()
    • buildAndConnect

      public javax.mail.Store buildAndConnect()
      Specified by:
      buildAndConnect in interface MailSessionBuilder.FromBuilder