public class ToStringTypeConverter extends TypeConverterSupport
Constructor and Description |
---|
ToStringTypeConverter() |
Modifier and Type | Method and Description |
---|---|
<T> T |
convertTo(Class<T> toType,
Exchange exchange,
Object value)
Converts the value to the specified type in the context of an exchange
Used when conversion requires extra information from the current
exchange (such as encoding).
|
allowNull, convertTo, mandatoryConvertTo, mandatoryConvertTo, tryConvertTo, tryConvertTo
public ToStringTypeConverter()
public <T> T convertTo(Class<T> toType, Exchange exchange, Object value)
TypeConverter
toType
- the requested typeexchange
- the current exchangevalue
- the value to be convertedApache Camel