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

one.valuelogic.vertx.web.problem.NotFoundHandler Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package one.valuelogic.vertx.web.problem;

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

import static javax.ws.rs.core.Response.Status.NOT_FOUND;
import static org.zalando.problem.Problem.valueOf;

public class NotFoundHandler implements Handler {

    @Override
    public void handle(RoutingContext context) {
        context.fail(valueOf(NOT_FOUND));
    }

    public static NotFoundHandler create() {
        return new NotFoundHandler();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy