Class SIPExchangeHelper

  • All Implemented Interfaces:
    Serializable

    public class SIPExchangeHelper
    extends org.apache.camel.support.DefaultExchangeHolder
    Utility class that changes the Exchange
    See Also:
    Serialized Form
    • Constructor Detail

      • SIPExchangeHelper

        public SIPExchangeHelper()
    • Method Detail

      • filterNonSerializableHeaders

        protected static Map<String,​Object> filterNonSerializableHeaders​(org.apache.camel.Exchange exchange)
        Filters out all non-serializable headers so they can be used in serializable environment
        Parameters:
        exchange - whose headers should be checked
        Returns:
        Map of headers that are serializable
      • mapToMessageProperties

        public static MessageProperties mapToMessageProperties​(org.apache.camel.Exchange exchange)
        Creates a MessageProperties from the Exchange.
        Parameters:
        exchange - that should be mapped
        Returns:
        serializable message properties