public class SMTPMailMessageConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MAIL_FROM_HEADER_NAME |
static String |
MAIL_RECIPIENTS_HEADER |
static String |
MESSAGE_ID_HEADER_NAME |
| Constructor and Description |
|---|
SMTPMailMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
static SMTPMailMessage |
fromStreamMessage(org.springframework.messaging.Message<?> msg)
Converts a SpringCloud message to an SMTPMailMessage
|
static org.springframework.messaging.Message<?> |
toStreamMessage(SMTPMailMessage msg)
Converts an SMTPMailMessage object to a Spring Cloud Stream message.
|
static org.springframework.messaging.Message<?> |
toStreamMessage(SMTPMailMessage msg,
Map<String,Object> hdrs)
Converts an SMTPMailMessage object and custom headers to a Spring Cloud Stream message.
|
public static final String MESSAGE_ID_HEADER_NAME
public static final String MAIL_FROM_HEADER_NAME
public static final String MAIL_RECIPIENTS_HEADER
public static org.springframework.messaging.Message<?> toStreamMessage(SMTPMailMessage msg)
msg - The mail message to convert.public static org.springframework.messaging.Message<?> toStreamMessage(SMTPMailMessage msg, Map<String,Object> hdrs)
msg - The mail message to convert.hdrs - Custom headers to add to the message.public static SMTPMailMessage fromStreamMessage(org.springframework.messaging.Message<?> msg)
msg - The message to convert.Copyright © 2010–2021 The Direct Project. All rights reserved.