Class MailHeadersBuilder
java.lang.Object
org.springframework.integration.support.MapBuilder<MailHeadersBuilder, String, Object>
org.springframework.integration.mail.dsl.MailHeadersBuilder
The Mail specific 
MapBuilder implementation.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Field SummaryFields inherited from class org.springframework.integration.support.MapBuilderPARSER
- 
Method SummaryModifier and TypeMethodDescriptionattachmentFilename(String attachmentFilename) Set a filename for the attachment.attachmentFilenameExpression(String attachmentFilename) Set an expression that will be evaluated to determine the filename for the attachment.attachmentFilenameFunction(Function<Message<P>, String> attachmentFilename) Set a function that will be invoked to determine the filename for the attachment.Set the bcc: addresses.bccExpression(String bcc) Set the expression that will be evaluated to determine the bcc: addresses.bccFunction(Function<Message<P>, String[]> bcc) Set a function that will be invoked to determine the bcc: addresses based on the message.Set the cc: addresses.ccExpression(String cc) Set the expression that will be evaluated to determine the cc: addresses.ccFunction(Function<Message<P>, String[]> cc) Set a function that will be invoked to determine the cc: addresses based on the message.contentType(String contentType) Set the content type.contentTypeExpression(String contentType) Set an expression that will be evaluated to determine the content type.contentTypeFunction(Function<Message<P>, String> contentType) Set a function that will be invoked to determine the content type.Set the From: address.fromExpression(String from) Set the expression that will be evaluated to determine theFrom:address.fromFunction(Function<Message<P>, String> from) Set a function that will be invoked to determine theFrom:address based on the message.multipartMode(int multipartMode) Set a multipart mode to use.multipartModeExpression(String multipartMode) Set an expression that is evaluated to determine a multipart mode to use.multipartModeFunction(Function<Message<P>, Integer> multipartMode) Set a function that is invoked to determine a multipart mode to use.Set the ReplyTo: address.replyToExpression(String replyTo) Set the expression that will be evaluated to determine the ReplyTo: address.replyToFunction(Function<Message<P>, String> replyTo) Set a function that will be invoked to determine the ReplyTo: address based on the message.Set the subject.subjectExpression(String subject) Set the expression that will be evaluated to determine th subject.subjectFunction(Function<Message<P>, String> subject) Set a function that will be invoked to return the subject based on the message.Set the To: addresses.toExpression(String to) Set the expression that will be evaluated to determine the To: addresses.toFunction(Function<Message<P>, String[]> to) Set a function that will be invoked to determine the To: addresses based on the message.Methods inherited from class org.springframework.integration.support.MapBuilder_this, get, put
- 
Method Details- 
subjectSet the subject.- Parameters:
- subject- the subject.
- Returns:
- the builder.
 
- 
subjectExpressionSet the expression that will be evaluated to determine th subject.- Parameters:
- subject- the subject expression.
- Returns:
- the builder.
 
- 
subjectFunctionSet a function that will be invoked to return the subject based on the message.- Type Parameters:
- P- the message payload type.
- Parameters:
- subject- the function.
- Returns:
- the builder.
 
- 
toSet the To: addresses.- Parameters:
- to- the addresses.
- Returns:
- the builder.
 
- 
toExpressionSet the expression that will be evaluated to determine the To: addresses.- Parameters:
- to- the expression.
- Returns:
- the builder.
 
- 
toFunctionSet a function that will be invoked to determine the To: addresses based on the message.- Type Parameters:
- P- the message payload type.
- Parameters:
- to- the function.
- Returns:
- the builder.
 
- 
ccSet the cc: addresses.- Parameters:
- cc- the addresses.
- Returns:
- the builder.
 
- 
ccExpressionSet the expression that will be evaluated to determine the cc: addresses.- Parameters:
- cc- the expression.
- Returns:
- the builder.
 
- 
ccFunctionSet a function that will be invoked to determine the cc: addresses based on the message.- Type Parameters:
- P- the message payload type.
- Parameters:
- cc- the function.
- Returns:
- the builder.
 
- 
bccSet the bcc: addresses.- Parameters:
- bcc- the addresses.
- Returns:
- the builder.
 
- 
bccExpressionSet the expression that will be evaluated to determine the bcc: addresses.- Parameters:
- bcc- the expression.
- Returns:
- the builder.
 
- 
bccFunctionSet a function that will be invoked to determine the bcc: addresses based on the message.- Type Parameters:
- P- the message payload type.
- Parameters:
- bcc- the function.
- Returns:
- the builder.
 
- 
fromSet the From: address.- Parameters:
- from- the address.
- Returns:
- the builder.
 
- 
fromExpressionSet the expression that will be evaluated to determine theFrom:address.- Parameters:
- from- the expression.
- Returns:
- the builder.
 
- 
fromFunctionSet a function that will be invoked to determine theFrom:address based on the message.- Type Parameters:
- P- the message payload type.
- Parameters:
- from- the function.
- Returns:
- the builder.
 
- 
replyToSet the ReplyTo: address.- Parameters:
- replyTo- the address.
- Returns:
- the builder.
 
- 
replyToExpressionSet the expression that will be evaluated to determine the ReplyTo: address.- Parameters:
- replyTo- the expression.
- Returns:
- the builder.
 
- 
replyToFunctionSet a function that will be invoked to determine the ReplyTo: address based on the message.- Type Parameters:
- P- the message payload type.
- Parameters:
- replyTo- the function.
- Returns:
- the builder.
 
- 
multipartModeSet a multipart mode to use. Possible values are 0 through 3.- Parameters:
- multipartMode- header value
- Returns:
- this
- See Also:
 
- 
multipartModeExpressionSet an expression that is evaluated to determine a multipart mode to use. Possible values are 0 through 3.- Parameters:
- multipartMode- header value.
- Returns:
- the builder.
- See Also:
 
- 
multipartModeFunctionSet a function that is invoked to determine a multipart mode to use. Possible values are 0 through 3.- Type Parameters:
- P- the message payload type.
- Parameters:
- multipartMode- header value
- Returns:
- the builder.
- See Also:
 
- 
attachmentFilenameSet a filename for the attachment.- Parameters:
- attachmentFilename- the file name.
- Returns:
- the builder.
 
- 
attachmentFilenameExpressionSet an expression that will be evaluated to determine the filename for the attachment.- Parameters:
- attachmentFilename- the expression.
- Returns:
- the builder.
 
- 
attachmentFilenameFunctionpublic <P> MailHeadersBuilder attachmentFilenameFunction(Function<Message<P>, String> attachmentFilename) Set a function that will be invoked to determine the filename for the attachment.- Type Parameters:
- P- the message payload type.
- Parameters:
- attachmentFilename- the function.
- Returns:
- the builder.
 
- 
contentTypeSet the content type.- Parameters:
- contentType- the content type.
- Returns:
- the builder.
 
- 
contentTypeExpressionSet an expression that will be evaluated to determine the content type.- Parameters:
- contentType- the expression.
- Returns:
- the builder.
 
- 
contentTypeFunctionSet a function that will be invoked to determine the content type.- Type Parameters:
- P- the message payload type.
- Parameters:
- contentType- the expression.
- Returns:
- the builder.
 
 
-