Package org.nuxeo.mail
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 Summary
Fields Modifier and Type Field Description protected boolean
debug
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFrom()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.mail.Session
build()
javax.mail.Store
buildAndConnect()
F
debug()
Enables debug mode for built session.protected abstract javax.mail.Session
retrieveSession()
-
-
-
Method Detail
-
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 interfaceMailSessionBuilder.FromBuilder
-
retrieveSession
protected abstract javax.mail.Session retrieveSession()
-
buildAndConnect
public javax.mail.Store buildAndConnect()
- Specified by:
buildAndConnect
in interfaceMailSessionBuilder.FromBuilder
-
-