vertx / io.vertx.camel / InboundMapping / withBodyType

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.

Parameters

bodyType - the body type.

Return
the current InboundMapping