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

io.quarkus.vertx.http.deployment.VertxWebRouterBuildItem Maven / Gradle / Ivy

package io.quarkus.vertx.http.deployment;

import io.quarkus.builder.item.SimpleBuildItem;
import io.quarkus.runtime.RuntimeValue;
import io.vertx.ext.web.Router;

public final class VertxWebRouterBuildItem extends SimpleBuildItem {

    private final RuntimeValue httpRouter;
    private final RuntimeValue mainRouter;
    private final RuntimeValue frameworkRouter;
    private final RuntimeValue mutinyRouter;
    private final RuntimeValue managementRouter;

    VertxWebRouterBuildItem(RuntimeValue httpRouter, RuntimeValue mainRouter,
            RuntimeValue frameworkRouter,
            RuntimeValue managementRouter,
            RuntimeValue mutinyRouter) {
        this.httpRouter = httpRouter;
        this.mainRouter = mainRouter;
        this.frameworkRouter = frameworkRouter;
        this.managementRouter = managementRouter; // Can be null if the management interface is disabled
        this.mutinyRouter = mutinyRouter;
    }

    public RuntimeValue getHttpRouter() {
        return httpRouter;
    }

    public RuntimeValue getMutinyRouter() {
        return mutinyRouter;
    }

    /**
     * Will be {@code null} if `${quarkus.http.root-path}` is {@literal /}.
     *
     * @return RuntimeValue
     */
    RuntimeValue getMainRouter() {
        return mainRouter;
    }

    /**
     * Will be {@code null} if {@code ${quarkus.http.root-path}} is the same as
     * {@code ${quarkus.http.non-application-root-path}}.
     *
     * @return RuntimeValue
     */
    RuntimeValue getFrameworkRouter() {
        return frameworkRouter;
    }

    /**
     * Will be {@code null} if the management interface is disabled.
     *
     * @return RuntimeValue
     */
    RuntimeValue getManagementRouter() {
        return managementRouter;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy