public class InboundMapping extends CamelMapping
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_PUBLISH
The default value of the "publish" property.
|
DEFAULT_HEADERS_COPY| Constructor and Description |
|---|
InboundMapping() |
| Modifier and Type | Method and Description |
|---|---|
static InboundMapping |
fromCamel(org.apache.camel.Endpoint endpoint)
Creates an
InboundMapping from the given Camel endpoint. |
static InboundMapping |
fromCamel(String uri)
Creates an
InboundMapping from the given Camel endpoint. |
Class |
getBodyType() |
int |
getTimeout() |
boolean |
isPublish() |
InboundMapping |
setAddress(String address)
Sets the event bus address.
|
InboundMapping |
setEndpoint(org.apache.camel.Endpoint endpoint)
Sets the Camel endpoint.
|
InboundMapping |
setHeadersCopy(boolean headersCopy)
Sets whether or not the headers of the input message are copied in the output message.
|
InboundMapping |
setTimeout(int timeout)
Sets the timeout in milliseconds.
|
InboundMapping |
setUri(String uri)
Sets the Camel endpoint URI.
|
InboundMapping |
toVertx(String address)
Fluent version of
setAddress(String). |
InboundMapping |
usePublish()
Sets whether or not
publish is used instead of send, when a message is sent on the event bus. |
InboundMapping |
withBodyType(Class bodyType)
Sets the type of the body of the event bus message.
|
InboundMapping |
withoutHeadersCopy()
Fluent version of
setHeadersCopy(boolean) to disable the headers copy (so the parameter is false). |
getAddress, getUri, isHeadersCopypublic static final boolean DEFAULT_PUBLISH
send.public static InboundMapping fromCamel(String uri)
InboundMapping from the given Camel endpoint.uri - the uri - must not be nullInboundMappingpublic static InboundMapping fromCamel(org.apache.camel.Endpoint endpoint)
InboundMapping from the given Camel endpoint.endpoint - the endpoint - must not be nullInboundMappingpublic boolean isPublish()
publish is used instead of send, when a message is sent on the event bus.
send is used by default.public Class getBodyType()
public InboundMapping withBodyType(Class bodyType)
bodyType - the body type.InboundMappingpublic InboundMapping setAddress(String address)
CamelMappingsetAddress in class CamelMappingaddress - the addressCamelMappingpublic InboundMapping toVertx(String address)
setAddress(String).address - the Vert.x event bus addressInboundMapping instancesetAddress(String)public InboundMapping withoutHeadersCopy()
setHeadersCopy(boolean) to disable the headers copy (so the parameter is false).InboundMapping instancesetHeadersCopy(boolean)public InboundMapping setHeadersCopy(boolean headersCopy)
CamelMappingsetHeadersCopy in class CamelMappingheadersCopy - true to copy the headersCamelMappingpublic InboundMapping setUri(String uri)
CamelMappingsetUri in class CamelMappinguri - the uriCamelMappingpublic InboundMapping setEndpoint(org.apache.camel.Endpoint endpoint)
CamelMappingCamelMapping.setUri(String) does not need to be called.setEndpoint in class CamelMappingendpoint - the endpointCamelMappingpublic InboundMapping usePublish()
publish is used instead of send, when a message is sent on the event bus.
send is used by default, so calling this method instructs the bridge to use publish.InboundMappingpublic InboundMapping setTimeout(int timeout)
timeout - the time out, must be strictly positiveInboundMappingpublic int getTimeout()
Copyright © 2021 Eclipse. All rights reserved.