public interface RouteToEBServiceHandler extends Handler<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(EventBus eventBus,
String address,
String actionName)
Build a new
RouteToEBServiceHandler |
static RouteToEBServiceHandler |
build(EventBus eventBus,
String address,
String actionName,
DeliveryOptions deliveryOptions)
Build a new
RouteToEBServiceHandler |
RouteToEBServiceHandler |
extraPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraPayloadMapper)
When
extraPayloadMapper is configured, this handler puts the evaluation result into ServiceRequest.getExtra() |
RouteToEBServiceHandler extraPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraPayloadMapper)
extraPayloadMapper
is configured, this handler puts the evaluation result into ServiceRequest.getExtra()
extraPayloadMapper
- mapperstatic RouteToEBServiceHandler build(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(EventBus eventBus, String address, String actionName, 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 © 2023 Eclipse. All rights reserved.