Class ExtendedMessage


  • public final class ExtendedMessage
    extends java.lang.Object
    Wraps a Message and provides additional information during messages retrieval by the ExtendedMessageConnector.
    Since:
    11.32
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtendedMessage​(javax.mail.Message message)
      Constructs a ExtendedMessage with the specified message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<ContactIdentifier> getContactIdentifier()
      This method returns the additional contact information used as secondary search criteria while searching an existing contact.
      javax.mail.Message getMessage()
      Returns the message retrieved by the ExtendedMessageConnector.
      ExtendedMessage setContactIdentifier​(ContactIdentifier contactIdentifier)
      This method allows to set the ContactIdentifier used as secondary search criteria while searching an existing contact for the Ticket that may be created due to the message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtendedMessage

        public ExtendedMessage​(javax.mail.Message message)
        Constructs a ExtendedMessage with the specified message.
        Parameters:
        message - the Message contained in this ExtendedMessage
        Since:
        11.32
    • Method Detail

      • getMessage

        public javax.mail.Message getMessage()
        Returns the message retrieved by the ExtendedMessageConnector.
        Returns:
        the message retrieved by the ExtendedMessageConnector.
        Since:
        11.32
      • getContactIdentifier

        public java.util.Optional<ContactIdentifier> getContactIdentifier()
        This method returns the additional contact information used as secondary search criteria while searching an existing contact. The attributes will be assigned to the existing or newly created contact.
        Returns:
        the optional contact identifier or an empty optional if no contact identifier is set
        Since:
        11.32
      • setContactIdentifier

        public ExtendedMessage setContactIdentifier​(ContactIdentifier contactIdentifier)
        This method allows to set the ContactIdentifier used as secondary search criteria while searching an existing contact for the Ticket that may be created due to the message. The attributes will be assigned to the existing or newly created contact.
        Parameters:
        contactIdentifier - the contact identifier to be used as secondary search criteria
        Returns:
        the instance for fluent usage
        Since:
        11.32