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 aServiceRequest
object through the event bus. The expected reply is aServiceResponse
This handler requires aValidationHandler
that process request parameters, so they can be encapsulated by this handler inside theServiceRequest
NOTE: This class has been automatically generated from theoriginal
non 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 void
accept(RoutingContext item)
static RouteToEBServiceHandler
build(EventBus eventBus, String address, String actionName)
static RouteToEBServiceHandler
build(EventBus eventBus, String address, String actionName, io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
boolean
equals(Object o)
RouteToEBServiceHandler
extraPayloadMapper(Function<RoutingContext,io.vertx.core.json.JsonObject> extraPayloadMapper)
io.vertx.ext.web.api.service.RouteToEBServiceHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static RouteToEBServiceHandler
newInstance(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg)
String
toString()
-
-
-
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:
handle
in 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 namedaction
deliveryOptions
- delivery options that will be always sent with the request- Returns:
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static RouteToEBServiceHandler newInstance(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg)
-
-