All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.reactive.server.vertx.ResteasyReactiveVertxHandler Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package org.jboss.resteasy.reactive.server.vertx;

import java.util.function.Consumer;

import org.jboss.resteasy.reactive.server.handlers.RestInitialHandler;

import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;

public class ResteasyReactiveVertxHandler implements Handler {

    private final RestInitialHandler handler;
    private final Consumer eventCustomizer;

    public ResteasyReactiveVertxHandler(Consumer eventCustomizer, RestInitialHandler handler) {
        this.handler = handler;
        this.eventCustomizer = eventCustomizer;
    }

    @Override
    public void handle(RoutingContext event) {
        eventCustomizer.accept(event);
        handler.beginProcessing(event);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy