public class MailSendingMessageHandlerSpec extends MessageHandlerSpec<MailSendingMessageHandlerSpec,MailSendingMessageHandler>
Modifier and Type | Field and Description |
---|---|
protected JavaMailSenderImpl |
sender |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
MailSendingMessageHandlerSpec(String host) |
Modifier and Type | Method and Description |
---|---|
MailSendingMessageHandlerSpec |
credentials(String username,
String password)
Set the credentials.
|
MailSendingMessageHandlerSpec |
defaultEncoding(String defaultEncoding)
Set the default encoding.
|
MailSendingMessageHandlerSpec |
defaultFileTypeMap(FileTypeMap defaultFileTypeMap)
Set the default type map.
|
MailSendingMessageHandlerSpec |
javaMailProperties(java.util.function.Consumer<PropertiesBuilder> propertiesConfigurer)
Set a
Consumer that will be invoked with a PropertiesBuilder ; most often
used with a lambda expression. |
MailSendingMessageHandlerSpec |
javaMailProperties(Properties javaMailProperties)
Set the javamail properties.
|
MailSendingMessageHandlerSpec |
password(String password)
Set the mail user password.
|
MailSendingMessageHandlerSpec |
port(int port)
Set the port.
|
MailSendingMessageHandlerSpec |
protocol(String protocol)
Set the protocol.
|
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected final JavaMailSenderImpl sender
public MailSendingMessageHandlerSpec javaMailProperties(Properties javaMailProperties)
javaMailProperties
- the properties.JavaMailSenderImpl.setJavaMailProperties(Properties)
public MailSendingMessageHandlerSpec javaMailProperties(java.util.function.Consumer<PropertiesBuilder> propertiesConfigurer)
Consumer
that will be invoked with a PropertiesBuilder
; most often
used with a lambda expression.propertiesConfigurer
- the consumer.public MailSendingMessageHandlerSpec protocol(@Nullable String protocol)
protocol
- the protocol.JavaMailSenderImpl.setProtocol(String)
public MailSendingMessageHandlerSpec port(int port)
port
- the port.JavaMailSenderImpl.setPort(int)
public MailSendingMessageHandlerSpec credentials(@Nullable String username, @Nullable String password)
username
- the user name.password
- the password.JavaMailSenderImpl.setUsername(String)
,
JavaMailSenderImpl.setPassword(String)
public MailSendingMessageHandlerSpec password(@Nullable String password)
username
is provided in the Java mail properties.password
- the password.JavaMailSenderImpl.setPassword(String)
,
javaMailProperties(Properties)
public MailSendingMessageHandlerSpec defaultEncoding(@Nullable String defaultEncoding)
defaultEncoding
- the default encoding.JavaMailSenderImpl.setDefaultEncoding(String)
public MailSendingMessageHandlerSpec defaultFileTypeMap(@Nullable FileTypeMap defaultFileTypeMap)
defaultFileTypeMap
- the default type map.JavaMailSenderImpl.setDefaultFileTypeMap(FileTypeMap)