Class MailMessageHandler
java.lang.Object
com.flowable.platform.engine.impl.eventregistry.mail.MailMessageHandler
- All Implemented Interfaces:
MessageHandler
,ErrorHandler
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected String
protected EventRegistry
protected InboundEventTenantDetector<jakarta.mail.internet.MimeMessage>
protected MailInboundChannelModel
protected final org.slf4j.Logger
protected MessagePayloadExtractor
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
ConstructorDescriptionMailMessageHandler
(EventRegistry eventRegistry, com.fasterxml.jackson.databind.ObjectMapper objectMapper, MessagePayloadExtractor messagePayloadExtractor, MailInboundChannelModel inboundChannelModel, InboundEventTenantDetector<jakarta.mail.internet.MimeMessage> eventTenantDetector) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<EventPayloadInstance>
extractPayload
(MailInboundChannelModel inboundChannelModel, Object payload) protected String
extractTenantId
(Message<?> message) void
handleError
(Throwable throwable) void
handleMessage
(Message<?> message) void
setEventRegistry
(EventRegistry eventRegistry) void
setInboundChannelModel
(MailInboundChannelModel inboundChannelModel)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
DEFAULT_EVENT_KEY
- See Also:
-
eventRegistry
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
messagePayloadExtractor
-
inboundChannelModel
-
eventTenantDetector
-
eventKey
-
-
Constructor Details
-
MailMessageHandler
public MailMessageHandler(EventRegistry eventRegistry, com.fasterxml.jackson.databind.ObjectMapper objectMapper, MessagePayloadExtractor messagePayloadExtractor, MailInboundChannelModel inboundChannelModel, InboundEventTenantDetector<jakarta.mail.internet.MimeMessage> eventTenantDetector)
-
-
Method Details
-
handleError
- Specified by:
handleError
in interfaceErrorHandler
-
handleMessage
- Specified by:
handleMessage
in interfaceMessageHandler
- Throws:
MessagingException
-
extractPayload
protected Collection<EventPayloadInstance> extractPayload(MailInboundChannelModel inboundChannelModel, Object payload) throws jakarta.mail.MessagingException, IOException - Throws:
jakarta.mail.MessagingException
IOException
-
extractTenantId
-
getEventRegistry
-
setEventRegistry
-
getInboundChannelModel
-
setInboundChannelModel
-