Class MailSendingMessageHandlerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<MailSendingMessageHandlerSpec, MailSendingMessageHandler>
org.springframework.integration.dsl.MessageHandlerSpec<MailSendingMessageHandlerSpec, MailSendingMessageHandler>
org.springframework.integration.mail.dsl.MailSendingMessageHandlerSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<MailSendingMessageHandler>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
public class MailSendingMessageHandlerSpec
extends MessageHandlerSpec<MailSendingMessageHandlerSpec, MailSendingMessageHandler>
- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncredentials(@Nullable String username, @Nullable String password) Set the credentials.defaultEncoding(@Nullable String defaultEncoding) Set the default encoding.defaultFileTypeMap(@Nullable FileTypeMap defaultFileTypeMap) Set the default type map.javaMailProperties(Consumer<PropertiesBuilder> propertiesConfigurer) Set aConsumerthat will be invoked with aPropertiesBuilder; most often used with a lambda expression.javaMailProperties(Properties javaMailProperties) Set the javamail properties.Set the mail user password.port(int port) Set the port.Set the protocol.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingletonMethods inherited from interface org.springframework.context.SmartLifecycleisPauseable
- 
Field Details- 
sender
 
- 
- 
Constructor Details- 
MailSendingMessageHandlerSpec
 
- 
- 
Method Details- 
javaMailPropertiesSet the javamail properties.- Parameters:
- javaMailProperties- the properties.
- Returns:
- the spec.
- See Also:
 
- 
javaMailPropertiespublic MailSendingMessageHandlerSpec javaMailProperties(Consumer<PropertiesBuilder> propertiesConfigurer) Set aConsumerthat will be invoked with aPropertiesBuilder; most often used with a lambda expression.- Parameters:
- propertiesConfigurer- the consumer.
- Returns:
- the spec.
 
- 
protocolSet the protocol.- Parameters:
- protocol- the protocol.
- Returns:
- the spec.
- See Also:
 
- 
portSet the port.- Parameters:
- port- the port.
- Returns:
- the spec.
- See Also:
 
- 
credentialspublic MailSendingMessageHandlerSpec credentials(@Nullable String username, @Nullable String password) Set the credentials.- Parameters:
- username- the username.
- password- the password.
- Returns:
- the spec.
- See Also:
 
- 
passwordSet the mail user password. A convenient method whenusernameis provided in the Java mail properties.- Parameters:
- password- the password.
- Returns:
- the spec.
- Since:
- 5.1.3
- See Also:
 
- 
defaultEncodingSet the default encoding.- Parameters:
- defaultEncoding- the default encoding.
- Returns:
- the spec.
- See Also:
 
- 
defaultFileTypeMapSet the default type map.- Parameters:
- defaultFileTypeMap- the default type map.
- Returns:
- the spec.
- See Also:
 
 
-