Class CamelMapping
java.lang.Object
io.vertx.camel.CamelMapping
- Direct Known Subclasses:
InboundMapping, OutboundMapping
Parent class for mapping between Vert.x event bus and Camel endpoints.
- Author:
- Clement Escoffier
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUri()booleansetAddress(String address) Sets the event bus address.setEndpoint(org.apache.camel.Endpoint endpoint) Sets the Camel endpoint.setHeadersCopy(boolean headersCopy) Sets whether or not the headers of the input message are copied in the output message.Sets the Camel endpoint URI.
-
Field Details
-
DEFAULT_HEADERS_COPY
public static final boolean DEFAULT_HEADERS_COPY- See Also:
-
-
Constructor Details
-
CamelMapping
public CamelMapping()
-
-
Method Details
-
getUri
- Returns:
- the Camel endpoint URI.
-
setUri
Sets the Camel endpoint URI.- Parameters:
uri- the uri- Returns:
- the current
CamelMapping
-
setEndpoint
Sets the Camel endpoint. If used,setUri(String)does not need to be called.- Parameters:
endpoint- the endpoint- Returns:
- the current
CamelMapping
-
isHeadersCopy
public boolean isHeadersCopy()- Returns:
- whether or not the headers of the input message are copied in the output message.
-
setHeadersCopy
Sets whether or not the headers of the input message are copied in the output message.- Parameters:
headersCopy-trueto copy the headers- Returns:
- the current
CamelMapping
-
getAddress
- Returns:
- the event bus address.
-
setAddress
Sets the event bus address.- Parameters:
address- the address- Returns:
- the current
CamelMapping
-