Class DefaultMessagePayloadExtractor

java.lang.Object
com.flowable.platform.engine.impl.eventregistry.mail.DefaultMessagePayloadExtractor
All Implemented Interfaces:
MessagePayloadExtractor

public class DefaultMessagePayloadExtractor extends Object implements MessagePayloadExtractor
Author:
Filip Hrisafov
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
    • KNOWN_HEADERS

      protected static final Collection<String> KNOWN_HEADERS
    • objectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • DefaultMessagePayloadExtractor

      public DefaultMessagePayloadExtractor(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • extractPayload

      public Collection<EventPayloadInstance> extractPayload(MailInboundChannelModel inboundChannelModel, jakarta.mail.internet.MimeMessage message) throws jakarta.mail.MessagingException
      Specified by:
      extractPayload in interface MessagePayloadExtractor
      Throws:
      jakarta.mail.MessagingException
    • extractFrom

      protected String extractFrom(jakarta.mail.internet.MimeMessage message) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • extractSubjectCorrelation

      protected String extractSubjectCorrelation(MailInboundChannelModel inboundChannelModel, String subject)
    • extractAttachments

      protected com.fasterxml.jackson.databind.node.ArrayNode extractAttachments(List<jakarta.activation.DataSource> attachments) throws IOException
      Throws:
      IOException
    • encodeDataSourceToString

      protected String encodeDataSourceToString(jakarta.activation.DataSource dataSource) throws IOException
      Throws:
      IOException
    • extractDate

      protected String extractDate(Date date)
    • extractRecipients

      protected com.fasterxml.jackson.databind.node.ArrayNode extractRecipients(jakarta.mail.Message message, jakarta.mail.Message.RecipientType recipientType) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • extractCustomHeaders

      protected com.fasterxml.jackson.databind.node.ObjectNode extractCustomHeaders(jakarta.mail.Message message) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • extractRawMailBytes

      protected String extractRawMailBytes(jakarta.mail.Message message) throws IOException, jakarta.mail.MessagingException
      Throws:
      IOException
      jakarta.mail.MessagingException