Class RouteToEBServiceHandler
java.lang.Object
io.vertx.mutiny.ext.web.api.service.RouteToEBServiceHandler
- All Implemented Interfaces:
MutinyDelegate
,io.vertx.core.Handler<RoutingContext>
,Consumer<RoutingContext>
public class RouteToEBServiceHandler
extends Object
implements MutinyDelegate, 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 a
This handler requires a
The HTTP request is sent encapsulated into a
ServiceRequest
object through the event bus. The expected reply is a ServiceResponse
This handler requires a
ValidationHandler
that process request parameters, so they can be encapsulated by this handler inside the ServiceRequest
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRouteToEBServiceHandler
(io.vertx.ext.web.api.service.RouteToEBServiceHandler delegate) RouteToEBServiceHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) static RouteToEBServiceHandler
static RouteToEBServiceHandler
build
(EventBus eventBus, String address, String actionName, io.vertx.core.eventbus.DeliveryOptions deliveryOptions) boolean
extraPayloadMapper
(Function<RoutingContext, io.vertx.core.json.JsonObject> extraPayloadMapper) io.vertx.ext.web.api.service.RouteToEBServiceHandler
void
handle
(RoutingContext arg0) int
hashCode()
static RouteToEBServiceHandler
newInstance
(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
RouteToEBServiceHandler
public RouteToEBServiceHandler(io.vertx.ext.web.api.service.RouteToEBServiceHandler delegate) -
RouteToEBServiceHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.api.service.RouteToEBServiceHandler getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- 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
- 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
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static RouteToEBServiceHandler newInstance(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg)
-