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

com.jetdrone.vertx.yoke.core.MountedMiddleware Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.jetdrone.vertx.yoke.core;

import com.jetdrone.vertx.yoke.Middleware;
import org.jetbrains.annotations.NotNull;

/**
 * Mounted middleware represents a binding of a Middleware instance to a specific url path.
 */
public class MountedMiddleware {
    public final String mount;
    public final Middleware middleware;
    public boolean enabled = true;

    /**
     * Constructs a new Mounted Middleware
     *
     * @param mount      Mount path
     * @param middleware Middleware to use on the path.
     */
    public MountedMiddleware(@NotNull String mount, @NotNull Middleware middleware) {
        this.mount = mount;
        this.middleware = middleware;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy