org.milyn.smooks.camel.converters
Class ResultConverter
java.lang.Object
org.milyn.smooks.camel.converters.ResultConverter
@Converter
public class ResultConverter
- extends Object
ResultConverter converts from different Result types.
- Author:
- Daniel Bevenius
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMOOKS_RESULT_KEY
public static final String SMOOKS_RESULT_KEY
- See Also:
- Constant Field Values
toDocument
@Converter
public static Node toDocument(DOMResult domResult)
toList
@Converter
public static List toList(JavaResult.ResultMap javaResult,
org.apache.camel.Exchange exchange)
toInteger
@Converter
public static Integer toInteger(JavaResult.ResultMap result)
toDouble
@Converter
public static Double toDouble(JavaResult.ResultMap result)
toString
@Converter
public static String toString(StringResult result)
toMap
@Converter
public static Map toMap(JavaResult.ResultMap resultBeans,
org.apache.camel.Exchange exchange)
toStreamSource
@Converter
public static StreamSource toStreamSource(StringResult stringResult)
convertTo
@FallbackConverter
public static <T> T convertTo(Class<T> type,
org.apache.camel.Exchange exchange,
Object value,
org.apache.camel.spi.TypeConverterRegistry registry)
Copyright © 2011. All Rights Reserved.