Class 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 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.

    • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • build

        public static RouteToEBServiceHandler build​(EventBus eventBus,
                                                    String address,
                                                    String actionName)
        Parameters:
        eventBus - Vert.x event bus instance
        address - Event bus endpoint address
        actionName - action name of the endpoint. This will be configured as header named action
        Returns:
      • build

        public static RouteToEBServiceHandler build​(EventBus eventBus,
                                                    String address,
                                                    String actionName,
                                                    io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
        Parameters:
        eventBus - Vert.x event bus instance
        address - Event bus endpoint address
        actionName - action name of the endpoint. This will be configured as header named action
        deliveryOptions - delivery options that will be always sent with the request
        Returns:
      • newInstance

        public static RouteToEBServiceHandler newInstance​(io.vertx.ext.web.api.service.RouteToEBServiceHandler arg)