org.apache.servicemix.camel.util
Class StrictSerializationHeaderFilterStrategy

java.lang.Object
  extended by org.apache.servicemix.camel.util.StrictSerializationHeaderFilterStrategy
All Implemented Interfaces:
org.apache.camel.spi.HeaderFilterStrategy

public class StrictSerializationHeaderFilterStrategy
extends Object
implements org.apache.camel.spi.HeaderFilterStrategy

HeaderFilterStrategy that filters out non-serializable values. It will try to write the object to a stream to make sure that an object that implements the Serializable interface can actually be serialized


Constructor Summary
StrictSerializationHeaderFilterStrategy()
           
 
Method Summary
 boolean applyFilterToCamelHeaders(String s, Object o)
           
 boolean applyFilterToExternalHeaders(String s, Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictSerializationHeaderFilterStrategy

public StrictSerializationHeaderFilterStrategy()
Method Detail

applyFilterToCamelHeaders

public boolean applyFilterToCamelHeaders(String s,
                                         Object o)
Specified by:
applyFilterToCamelHeaders in interface org.apache.camel.spi.HeaderFilterStrategy

applyFilterToExternalHeaders

public boolean applyFilterToExternalHeaders(String s,
                                            Object o)
Specified by:
applyFilterToExternalHeaders in interface org.apache.camel.spi.HeaderFilterStrategy


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.