Class ToStringTypeConverter

  • All Implemented Interfaces:
    org.apache.camel.TypeConverter

    public class ToStringTypeConverter
    extends org.apache.camel.support.TypeConverterSupport
    A simple converter that can convert any object to a String type by using the toString() method of the object.
    • Constructor Detail

      • ToStringTypeConverter

        public ToStringTypeConverter()
    • Method Detail

      • convertTo

        public <T> T convertTo​(Class<T> toType,
                               org.apache.camel.Exchange exchange,
                               Object value)