Class RouteToEBServiceHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.api.service.RouteToEBServiceHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,Consumer<RoutingContext>
public class RouteToEBServiceHandler extends Object implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
Handler that proxy the request to an event bus endpoint, waits for the reply and then writes the HTTP response.
The HTTP request is sent encapsulated into aServiceRequestobject through the event bus. The expected reply is aServiceResponse
This handler requires aValidationHandlerthat process request parameters, so they can be encapsulated by this handler inside theServiceRequestNOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<RouteToEBServiceHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description RouteToEBServiceHandler(io.vertx.ext.web.api.service.RouteToEBServiceHandler delegate)RouteToEBServiceHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RoutingContext item)static RouteToEBServiceHandlerbuild(EventBus eventBus, String address, String actionName)static RouteToEBServiceHandlerbuild(EventBus eventBus, String address, String actionName, io.vertx.core.eventbus.DeliveryOptions deliveryOptions)booleanequals(Object o)RouteToEBServiceHandlerextraPayloadMapper(Function<RoutingContext,io.vertx.core.json.JsonObject> extraPayloadMapper)io.vertx.ext.web.api.service.RouteToEBServiceHandlergetDelegate()voidhandle(RoutingContext arg0)inthashCode()static RouteToEBServiceHandlernewInstance(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<RouteToEBServiceHandler> __TYPE_ARG
-
-
Constructor Detail
-
RouteToEBServiceHandler
public RouteToEBServiceHandler(io.vertx.ext.web.api.service.RouteToEBServiceHandler delegate)
-
RouteToEBServiceHandler
public RouteToEBServiceHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.api.service.RouteToEBServiceHandler getDelegate()
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
extraPayloadMapper
public RouteToEBServiceHandler extraPayloadMapper(Function<RoutingContext,io.vertx.core.json.JsonObject> extraPayloadMapper)
- Parameters:
extraPayloadMapper- mapper- Returns:
-
build
public static RouteToEBServiceHandler build(EventBus eventBus, String address, String actionName)
- Parameters:
eventBus- Vert.x event bus instanceaddress- Event bus endpoint addressactionName- action name of the endpoint. This will be configured as header namedaction- Returns:
-
build
public static RouteToEBServiceHandler build(EventBus eventBus, String address, String actionName, io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
- Parameters:
eventBus- Vert.x event bus instanceaddress- Event bus endpoint addressactionName- action name of the endpoint. This will be configured as header namedactiondeliveryOptions- delivery options that will be always sent with the request- Returns:
-
accept
public void accept(RoutingContext item)
- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static RouteToEBServiceHandler newInstance(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg)
-
-