public interface SparkBinding
Modifier and Type | Method and Description |
---|---|
void |
populateCamelHeaders(spark.Request request,
Map<String,Object> headers,
org.apache.camel.Exchange exchange,
SparkConfiguration configuration)
Binds from Spark
Request to Camel headers as a Map . |
org.apache.camel.Message |
toCamelMessage(spark.Request request,
org.apache.camel.Exchange exchange,
SparkConfiguration configuration)
Binds from Spark
Request to Camel Message . |
void |
toSparkResponse(org.apache.camel.Message message,
spark.Response response,
SparkConfiguration configuration)
Binds from Camel
Message to Spark Response . |
org.apache.camel.Message toCamelMessage(spark.Request request, org.apache.camel.Exchange exchange, SparkConfiguration configuration) throws Exception
Request
to Camel Message
.request
- the Spark requestexchange
- the exchange that should contain the returned message.configuration
- configurationException
- is thrown if error during bindingvoid populateCamelHeaders(spark.Request request, Map<String,Object> headers, org.apache.camel.Exchange exchange, SparkConfiguration configuration) throws Exception
Request
to Camel headers as a Map
.request
- the Spark requestheaders
- the Camel headers that should be populatedexchange
- the exchange that should contain the returned message.configuration
- the endpoint configurationException
- is thrown if error during bindingvoid toSparkResponse(org.apache.camel.Message message, spark.Response response, SparkConfiguration configuration) throws Exception
Message
to Spark Response
.message
- the Camel messageresponse
- the Spark response to bind toconfiguration
- the endpoint configurationException
- is thrown if error during bindingApache Camel