@Converter public final class SparkConverter extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convertToRequest(Class<?> type,
org.apache.camel.Exchange exchange,
Object value,
org.apache.camel.spi.TypeConverterRegistry registry)
A fallback converter that allows us to easily call Java beans and use the raw Spark
Request as parameter types. |
static Object |
convertToResponse(Class<?> type,
org.apache.camel.Exchange exchange,
Object value,
org.apache.camel.spi.TypeConverterRegistry registry)
A fallback converter that allows us to easily call Java beans and use the raw Spark
Response as parameter types. |
@FallbackConverter public static Object convertToRequest(Class<?> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry)
Request
as parameter types.@FallbackConverter public static Object convertToResponse(Class<?> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry)
Response
as parameter types.Apache Camel