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, isHeadersCopy
public static final boolean DEFAULT_PUBLISH
send
.public static InboundMapping fromCamel(String uri)
InboundMapping
from the given Camel endpoint.uri
- the uri - must not be null
InboundMapping
public static InboundMapping fromCamel(org.apache.camel.Endpoint endpoint)
InboundMapping
from the given Camel endpoint.endpoint
- the endpoint - must not be null
InboundMapping
public 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.InboundMapping
public InboundMapping setAddress(String address)
CamelMapping
setAddress
in class CamelMapping
address
- the addressCamelMapping
public 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)
CamelMapping
setHeadersCopy
in class CamelMapping
headersCopy
- true
to copy the headersCamelMapping
public InboundMapping setUri(String uri)
CamelMapping
setUri
in class CamelMapping
uri
- the uriCamelMapping
public InboundMapping setEndpoint(org.apache.camel.Endpoint endpoint)
CamelMapping
CamelMapping.setUri(String)
does not need to be called.setEndpoint
in class CamelMapping
endpoint
- the endpointCamelMapping
public 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
.InboundMapping
public InboundMapping setTimeout(int timeout)
timeout
- the time out, must be strictly positiveInboundMapping
public int getTimeout()
Copyright © 2023 Eclipse. All rights reserved.