Class SIPExchangeHelper
- java.lang.Object
-
- org.apache.camel.support.DefaultExchangeHolder
-
- de.ikor.sip.foundation.testkit.util.SIPExchangeHelper
-
- All Implemented Interfaces:
Serializable
public class SIPExchangeHelper extends org.apache.camel.support.DefaultExchangeHolder
Utility class that changes theExchange
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SIPExchangeHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Map<String,Object>
filterNonSerializableHeaders(org.apache.camel.Exchange exchange)
Filters out all non-serializable headers so they can be used in serializable environmentstatic MessageProperties
mapToMessageProperties(org.apache.camel.Exchange exchange)
Creates aMessageProperties
from theExchange
.
-
-
-
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 aMessageProperties
from theExchange
.- Parameters:
exchange
- that should be mapped- Returns:
- serializable message properties
-
-