Class Camel
java.lang.Object
org.springframework.integration.camel.dsl.Camel
Factory class for Apache Camel components DSL.
- Since:
- 6.0
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic CamelMessageHandlerSpec
gateway()
Create an instance ofCamelMessageHandlerSpec
in aExchangePattern.InOut
mode.static CamelMessageHandlerSpec
gateway
(org.apache.camel.ProducerTemplate producerTemplate) Create an instance ofCamelMessageHandlerSpec
for the providedProducerTemplate
in aExchangePattern.InOut
mode.static CamelMessageHandlerSpec
handler()
Create an instance ofCamelMessageHandlerSpec
in aExchangePattern.InOnly
mode.static CamelMessageHandlerSpec
handler
(org.apache.camel.ProducerTemplate producerTemplate) Create an instance ofCamelMessageHandlerSpec
for the providedProducerTemplate
in aExchangePattern.InOnly
mode.static CamelMessageHandlerSpec
route
(org.apache.camel.builder.LambdaRouteBuilder route) Create an instance ofCamelMessageHandlerSpec
for the providedLambdaRouteBuilder
in aExchangePattern.InOut
mode.
-
Method Details
-
handler
Create an instance ofCamelMessageHandlerSpec
in aExchangePattern.InOnly
mode.- Returns:
- the spec.
-
handler
Create an instance ofCamelMessageHandlerSpec
for the providedProducerTemplate
in aExchangePattern.InOnly
mode.- Parameters:
producerTemplate
- theProducerTemplate
to use.- Returns:
- the spec.
-
gateway
Create an instance ofCamelMessageHandlerSpec
in aExchangePattern.InOut
mode.- Returns:
- the spec.
-
gateway
Create an instance ofCamelMessageHandlerSpec
for the providedProducerTemplate
in aExchangePattern.InOut
mode.- Parameters:
producerTemplate
- theProducerTemplate
to use.- Returns:
- the spec.
-
route
Create an instance ofCamelMessageHandlerSpec
for the providedLambdaRouteBuilder
in aExchangePattern.InOut
mode. TheCamelContext
is fetched as a bean from the application context.- Parameters:
route
- theLambdaRouteBuilder
to use.- Returns:
- the spec.
-