public interface RouteToEBServiceHandler
extends io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
ServiceRequest
object through the event bus. The expected reply is a ServiceResponse
ValidationHandler
that process request parameters, so they can be encapsulated by this handler inside the ServiceRequest
Modifier and Type | Method and Description |
---|---|
static RouteToEBServiceHandler |
build(io.vertx.core.eventbus.EventBus eventBus,
String address,
String actionName)
Build a new
RouteToEBServiceHandler |
static RouteToEBServiceHandler |
build(io.vertx.core.eventbus.EventBus eventBus,
String address,
String actionName,
io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
Build a new
RouteToEBServiceHandler |
RouteToEBServiceHandler |
extraPayloadMapper(Function<io.vertx.ext.web.RoutingContext,io.vertx.core.json.JsonObject> extraPayloadMapper)
When
extraPayloadMapper is configured, this handler puts the evaluation result into ServiceRequest.getExtra() |
RouteToEBServiceHandler extraPayloadMapper(Function<io.vertx.ext.web.RoutingContext,io.vertx.core.json.JsonObject> extraPayloadMapper)
extraPayloadMapper
is configured, this handler puts the evaluation result into ServiceRequest.getExtra()
extraPayloadMapper
- mapperstatic RouteToEBServiceHandler build(io.vertx.core.eventbus.EventBus eventBus, String address, String actionName)
RouteToEBServiceHandler
eventBus
- Vert.x event bus instanceaddress
- Event bus endpoint addressactionName
- action name of the endpoint. This will be configured as DeliveryOptions
header named action
static RouteToEBServiceHandler build(io.vertx.core.eventbus.EventBus eventBus, String address, String actionName, io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
RouteToEBServiceHandler
eventBus
- Vert.x event bus instanceaddress
- Event bus endpoint addressactionName
- action name of the endpoint. This will be configured as DeliveryOptions
header named action
deliveryOptions
- delivery options that will be always sent with the requestCopyright © 2021 Eclipse. All rights reserved.