Package io.vertx.camel
Class CamelBridgeOptions
- java.lang.Object
-
- io.vertx.camel.CamelBridgeOptions
-
public class CamelBridgeOptions extends Object
Camel bridge configuration.- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description CamelBridgeOptions(JsonObject json)Comply with theDataObjectcontract, however calling this constructor will always throw.CamelBridgeOptions(org.apache.camel.CamelContext context)Creates a new instance ofCamelBridgeOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CamelBridgeOptionsaddInboundMapping(InboundMapping mapping)Adds an inbound mapping (Camel to Vert.x).CamelBridgeOptionsaddOutboundMapping(OutboundMapping mapping)Adds an outbound mapping (Vert.x to Camel).org.apache.camel.CamelContextgetCamelContext()List<InboundMapping>getInboundMappings()List<OutboundMapping>getOutboundMappings()
-
-
-
Constructor Detail
-
CamelBridgeOptions
public CamelBridgeOptions(org.apache.camel.CamelContext context)
Creates a new instance ofCamelBridgeOptions.- Parameters:
context- the camel context used by the bridge. Must not benull, may not bestarted, however it should be started when the bridge is started.
-
CamelBridgeOptions
public CamelBridgeOptions(JsonObject json)
Comply with theDataObjectcontract, however calling this constructor will always throw.- Parameters:
json- a json object- Throws:
IllegalArgumentException- always.
-
-
Method Detail
-
addInboundMapping
public CamelBridgeOptions addInboundMapping(InboundMapping mapping)
Adds an inbound mapping (Camel to Vert.x).- Parameters:
mapping- the mapping, must not benull- Returns:
- the current
CamelBridgeOptions
-
addOutboundMapping
public CamelBridgeOptions addOutboundMapping(OutboundMapping mapping)
Adds an outbound mapping (Vert.x to Camel).- Parameters:
mapping- the mapping, must not benull- Returns:
- the current
CamelBridgeOptions
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
-
getInboundMappings
public List<InboundMapping> getInboundMappings()
-
getOutboundMappings
public List<OutboundMapping> getOutboundMappings()
-
-