public class MailHeadersBuilder extends MapBuilder<MailHeadersBuilder,String,Object>
MapBuilder
implementation.PARSER
Modifier and Type | Method and Description |
---|---|
MailHeadersBuilder |
attachmentFilename(String attachmentFilename)
Set a filename for the attachment.
|
MailHeadersBuilder |
attachmentFilenameExpression(String attachmentFilename)
Set an expression that will be evaluated to determine the filename for the attachment.
|
<P> MailHeadersBuilder |
attachmentFilenameFunction(java.util.function.Function<Message<P>,String> attachmentFilename)
Set a function that will be invoked to determine the filename for the attachment.
|
MailHeadersBuilder |
bcc(String... bcc)
Set the bcc: addresses.
|
MailHeadersBuilder |
bccExpression(String bcc)
Set the expression that will be evaluated to determine the bcc: addresses.
|
<P> MailHeadersBuilder |
bccFunction(java.util.function.Function<Message<P>,String[]> bcc)
Set a function that will be invoked to determine the bcc: addresses based on the
message.
|
MailHeadersBuilder |
cc(String... cc)
Set the cc: addresses.
|
MailHeadersBuilder |
ccExpression(String cc)
Set the expression that will be evaluated to determine the cc: addresses.
|
<P> MailHeadersBuilder |
ccFunction(java.util.function.Function<Message<P>,String[]> cc)
Set a function that will be invoked to determine the cc: addresses based on the
message.
|
MailHeadersBuilder |
contentType(String contentType)
Set the content type.
|
MailHeadersBuilder |
contentTypeExpression(String contentType)
Set an expression that will be evaluated to determine the content type.
|
<P> MailHeadersBuilder |
contentTypeFunction(java.util.function.Function<Message<P>,String> contentType)
Set a function that will be invoked to determine the content type.
|
MailHeadersBuilder |
from(String from)
Set the From: address.
|
MailHeadersBuilder |
fromExpression(String from)
Set the expression that will be evaluated to determine the From: address.
|
<P> MailHeadersBuilder |
fromFunction(java.util.function.Function<Message<P>,String> from)
Set a function that will be invoked to determine the From: address based on the
message.
|
MailHeadersBuilder |
multipartMode(int multipartMode)
Set a multipart mode to use.
|
MailHeadersBuilder |
multipartModeExpression(String multipartMode)
Set an expression that is evaluated to determine a multipart mode to use.
|
<P> MailHeadersBuilder |
multipartModeFunction(java.util.function.Function<Message<P>,Integer> multipartMode)
Set a function that is invoked to determine a multipart mode to use.
|
MailHeadersBuilder |
replyTo(String replyTo)
Set the ReplyTo: address.
|
MailHeadersBuilder |
replyToExpression(String replyTo)
Set the expression that will be evaluated to determine the ReplyTo: address.
|
<P> MailHeadersBuilder |
replyToFunction(java.util.function.Function<Message<P>,String> replyTo)
Set a function that will be invoked to determine the ReplyTo: address based on the
message.
|
MailHeadersBuilder |
subject(String subject)
Set the subject.
|
MailHeadersBuilder |
subjectExpression(String subject)
Set the expression that will be evaluated to determine th subject.
|
<P> MailHeadersBuilder |
subjectFunction(java.util.function.Function<Message<P>,String> subject)
Set a function that will be invoked to return the subject based on the message.
|
MailHeadersBuilder |
to(String... to)
Set the To: addresses.
|
MailHeadersBuilder |
toExpression(String to)
Set the expression that will be evaluated to determine the To: addresses.
|
<P> MailHeadersBuilder |
toFunction(java.util.function.Function<Message<P>,String[]> to)
Set a function that will be invoked to determine the To: addresses based on the
message.
|
_this, get, put
public MailHeadersBuilder subject(String subject)
subject
- the subject.public MailHeadersBuilder subjectExpression(String subject)
subject
- the subject expression.public <P> MailHeadersBuilder subjectFunction(java.util.function.Function<Message<P>,String> subject)
P
- the message payload type.subject
- the function.public MailHeadersBuilder to(String... to)
to
- the addresses.public MailHeadersBuilder toExpression(String to)
to
- the expression.public <P> MailHeadersBuilder toFunction(java.util.function.Function<Message<P>,String[]> to)
P
- the message payload type.to
- the function.public MailHeadersBuilder cc(String... cc)
cc
- the addresses.public MailHeadersBuilder ccExpression(String cc)
cc
- the expression.public <P> MailHeadersBuilder ccFunction(java.util.function.Function<Message<P>,String[]> cc)
P
- the message payload type.cc
- the function.public MailHeadersBuilder bcc(String... bcc)
bcc
- the addresses.public MailHeadersBuilder bccExpression(String bcc)
bcc
- the expression.public <P> MailHeadersBuilder bccFunction(java.util.function.Function<Message<P>,String[]> bcc)
P
- the message payload type.bcc
- the function.public MailHeadersBuilder from(String from)
from
- the address.public MailHeadersBuilder fromExpression(String from)
from
- the expression.public <P> MailHeadersBuilder fromFunction(java.util.function.Function<Message<P>,String> from)
P
- the message payload type.from
- the function.public MailHeadersBuilder replyTo(String replyTo)
replyTo
- the address.public MailHeadersBuilder replyToExpression(String replyTo)
replyTo
- the expression.public <P> MailHeadersBuilder replyToFunction(java.util.function.Function<Message<P>,String> replyTo)
P
- the message payload type.replyTo
- the function.public MailHeadersBuilder multipartMode(int multipartMode)
multipartMode
- header valueMimeMessageHelper
public MailHeadersBuilder multipartModeExpression(String multipartMode)
multipartMode
- header value.MimeMessageHelper
public <P> MailHeadersBuilder multipartModeFunction(java.util.function.Function<Message<P>,Integer> multipartMode)
P
- the message payload type.multipartMode
- header valueMimeMessageHelper
public MailHeadersBuilder attachmentFilename(String attachmentFilename)
attachmentFilename
- the file name.public MailHeadersBuilder attachmentFilenameExpression(String attachmentFilename)
attachmentFilename
- the expression.public <P> MailHeadersBuilder attachmentFilenameFunction(java.util.function.Function<Message<P>,String> attachmentFilename)
P
- the message payload type.attachmentFilename
- the function.public MailHeadersBuilder contentType(String contentType)
contentType
- the content type.public MailHeadersBuilder contentTypeExpression(String contentType)
contentType
- the expression.public <P> MailHeadersBuilder contentTypeFunction(java.util.function.Function<Message<P>,String> contentType)
P
- the message payload type.contentType
- the expression.