public class MailSession<T extends MailSession<T>> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MailSession.MailSessionResources
Child mutators for MailSession 
 | 
| Constructor and Description | 
|---|
MailSession(String key)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener 
 | 
T | 
custom(Custom value)
Add the Custom object to the list of subresources 
 | 
T | 
custom(CustomSupplier supplier)
Install a supplied Custom object to the list of subresources 
 | 
T | 
custom(String childKey)
Create and configure a Custom object to the list of subresources 
 | 
T | 
custom(String childKey,
      CustomConsumer consumer)
Create and configure a Custom object to the list of subresources 
 | 
T | 
customs(List<Custom> value)
Add all Custom objects to this subresource 
 | 
Boolean | 
debug()
Enables JavaMail debugging 
 | 
T | 
debug(Boolean value)
Enables JavaMail debugging 
 | 
String | 
from()
From address that is used as default from, if not set when sending 
 | 
T | 
from(String value)
From address that is used as default from, if not set when sending 
 | 
String | 
getKey()  | 
T | 
imapServer()
Mail session server 
 | 
T | 
imapServer(IMAPServer value)
Mail session server 
 | 
T | 
imapServer(IMAPServerConsumer consumer)
Mail session server 
 | 
T | 
imapServer(IMAPServerSupplier supplier)
Mail session server 
 | 
String | 
jndiName()
JNDI name to where mail session should be bound 
 | 
T | 
jndiName(String value)
JNDI name to where mail session should be bound 
 | 
T | 
pop3Server()
Mail session server 
 | 
T | 
pop3Server(POP3Server value)
Mail session server 
 | 
T | 
pop3Server(POP3ServerConsumer consumer)
Mail session server 
 | 
T | 
pop3Server(POP3ServerSupplier supplier)
Mail session server 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener 
 | 
T | 
smtpServer()
Mail session server 
 | 
T | 
smtpServer(SMTPServer value)
Mail session server 
 | 
T | 
smtpServer(SMTPServerConsumer consumer)
Mail session server 
 | 
T | 
smtpServer(SMTPServerSupplier supplier)
Mail session server 
 | 
MailSession.MailSessionResources | 
subresources()  | 
public MailSession(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public MailSession.MailSessionResources subresources()
public T customs(List<Custom> value)
value - List of Custom objects.public T custom(Custom value)
value - The Custom to addpublic T custom(String childKey, CustomConsumer consumer)
key - The key for the Custom resourceconfig - The CustomConsumer to usepublic T custom(String childKey)
key - The key for the Custom resourcepublic T custom(CustomSupplier supplier)
public T pop3Server(POP3Server value)
public T pop3Server(POP3ServerConsumer consumer)
public T pop3Server()
public T pop3Server(POP3ServerSupplier supplier)
public T smtpServer(SMTPServer value)
public T smtpServer(SMTPServerConsumer consumer)
public T smtpServer()
public T smtpServer(SMTPServerSupplier supplier)
public T imapServer(IMAPServer value)
public T imapServer(IMAPServerConsumer consumer)
public T imapServer()
public T imapServer(IMAPServerSupplier supplier)
public Boolean debug()
public String from()
public String jndiName()
Copyright © 2018 JBoss by Red Hat. All rights reserved.