public class MailSession extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MailSession.MailSessionResources
Child mutators for MailSession
|
| Constructor and Description |
|---|
MailSession(String key) |
| Modifier and Type | Method and Description |
|---|---|
MailSession |
custom(Custom value)
Add the Custom object to the list of subresources
|
MailSession |
customs(List<Custom> value)
Add all Custom objects to this subresource
|
Boolean |
debug()
Enables JavaMail debugging
|
MailSession |
debug(Boolean value)
Enables JavaMail debugging
|
String |
from()
From address that is used as default from, if not set when sending
|
MailSession |
from(String value)
From address that is used as default from, if not set when sending
|
String |
getKey() |
Imap |
imap()
Mail session server
|
MailSession |
imap(Imap value)
Mail session server
|
String |
jndiName()
JNDI name to where mail session should be bound
|
MailSession |
jndiName(String value)
JNDI name to where mail session should be bound
|
Pop3 |
pop3()
Mail session server
|
MailSession |
pop3(Pop3 value)
Mail session server
|
Smtp |
smtp()
Mail session server
|
MailSession |
smtp(Smtp value)
Mail session server
|
MailSession.MailSessionResources |
subresources() |
public MailSession(String key)
public String getKey()
public Boolean debug()
public MailSession debug(Boolean value)
public String from()
public MailSession from(String value)
public String jndiName()
public MailSession jndiName(String value)
public MailSession.MailSessionResources subresources()
public MailSession customs(List<Custom> value)
value - List of Custom objects.public MailSession custom(Custom value)
value - The Custom to addpublic Pop3 pop3()
public MailSession pop3(Pop3 value)
public Smtp smtp()
public MailSession smtp(Smtp value)
public Imap imap()
public MailSession imap(Imap value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.