vertx / io.vertx.camel / InboundMapping

InboundMapping

open class InboundMapping : CamelMapping

Represents a mapping between a Camel endpoint address and a Vert.x address on the event bus.

Author
Clement Escoffier

Constructors

<init>

InboundMapping()

Represents a mapping between a Camel endpoint address and a Vert.x address on the event bus.

Properties

DEFAULT_PUBLISH

static val DEFAULT_PUBLISH: Boolean

The default value of the "publish" property. By default, the bridge uses send.

Inherited Properties

DEFAULT_HEADERS_COPY

static val DEFAULT_HEADERS_COPY: Boolean

Functions

fromCamel

open static fun fromCamel(uri: String): InboundMapping
open static fun fromCamel(endpoint: Endpoint): InboundMapping

Creates an InboundMapping from the given Camel endpoint.

getBodyType

open fun getBodyType(): Class<Any>

isPublish

open fun isPublish(): Boolean

setAddress

open fun setAddress(address: String): InboundMapping

setEndpoint

open fun setEndpoint(endpoint: Endpoint): InboundMapping

setHeadersCopy

open fun setHeadersCopy(headersCopy: Boolean): InboundMapping

setUri

open fun setUri(uri: String): InboundMapping

toVertx

open fun toVertx(address: String): InboundMapping

Fluent version of #setAddress(String).

usePublish

open fun usePublish(): InboundMapping

Sets whether or not 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.

withBodyType

open fun withBodyType(bodyType: Class<Any>): InboundMapping

Sets the type of the body of the event bus message. A Camel converter from the Camel message payload to the given type is used for conversion. If not set, no conversions are applied.

withoutHeadersCopy

open fun withoutHeadersCopy(): InboundMapping

Fluent version of #setHeadersCopy(boolean) to disable the headers copy (so the parameter is false).

Inherited Functions

getAddress

open fun getAddress(): String

getUri

open fun getUri(): String

isHeadersCopy

open fun isHeadersCopy(): Boolean