public class MailMessageHandler extends Object implements MessageHandler, ErrorHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_EVENT_KEY |
protected String |
eventKey |
protected EventRegistry |
eventRegistry |
protected MailInboundChannelModel |
inboundChannelModel |
protected org.slf4j.Logger |
logger |
protected MessagePayloadExtractor |
messagePayloadExtractor |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected String |
tenantId |
Constructor and Description |
---|
MailMessageHandler(EventRegistry eventRegistry,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
MessagePayloadExtractor messagePayloadExtractor,
MailInboundChannelModel inboundChannelModel,
String tenantId) |
Modifier and Type | Method and Description |
---|---|
EventRegistry |
getEventRegistry() |
MailInboundChannelModel |
getInboundChannelModel() |
void |
handleError(Throwable throwable) |
void |
handleMessage(Message<?> message) |
void |
setEventRegistry(EventRegistry eventRegistry) |
void |
setInboundChannelModel(MailInboundChannelModel inboundChannelModel) |
protected final org.slf4j.Logger logger
protected static final String DEFAULT_EVENT_KEY
protected EventRegistry eventRegistry
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected MessagePayloadExtractor messagePayloadExtractor
protected MailInboundChannelModel inboundChannelModel
protected String tenantId
protected String eventKey
public MailMessageHandler(EventRegistry eventRegistry, com.fasterxml.jackson.databind.ObjectMapper objectMapper, MessagePayloadExtractor messagePayloadExtractor, MailInboundChannelModel inboundChannelModel, String tenantId)
public void handleError(Throwable throwable)
handleError
in interface ErrorHandler
public void handleMessage(Message<?> message) throws MessagingException
handleMessage
in interface MessageHandler
MessagingException
public EventRegistry getEventRegistry()
public void setEventRegistry(EventRegistry eventRegistry)
public MailInboundChannelModel getInboundChannelModel()
public void setInboundChannelModel(MailInboundChannelModel inboundChannelModel)