Package org.nuxeo.mail
Class MailSessionBuilder
- java.lang.Object
-
- org.nuxeo.mail.MailSessionBuilder
-
public class MailSessionBuilder extends Object
Builds yourSession
.- Since:
- 11.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MailSessionBuilder.AbstractFrom<F extends MailSessionBuilder.AbstractFrom>
static interface
MailSessionBuilder.FromBuilder
static class
MailSessionBuilder.FromJndi
static class
MailSessionBuilder.FromProperties
-
Constructor Summary
Constructors Constructor Description MailSessionBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MailSessionBuilder.FromJndi
fromJndi(String jndiSessionName)
Creates abuilder
looking for a session in jndi.static MailSessionBuilder.FromBuilder
fromNuxeoConf()
Creates abuilder
looking for a jndiSession
and falling back onFramework.getProperties()
if not found.static MailSessionBuilder.FromProperties
fromProperties(Properties properties)
Creates abuilder
instantiating a new session.
-
-
-
Constructor Detail
-
MailSessionBuilder
public MailSessionBuilder()
-
-
Method Detail
-
fromNuxeoConf
public static MailSessionBuilder.FromBuilder fromNuxeoConf()
Creates abuilder
looking for a jndiSession
and falling back onFramework.getProperties()
if not found.
-
fromJndi
public static MailSessionBuilder.FromJndi fromJndi(String jndiSessionName)
Creates abuilder
looking for a session in jndi.
-
fromProperties
public static MailSessionBuilder.FromProperties fromProperties(Properties properties)
Creates abuilder
instantiating a new session.
-
-