io.quarkus.smallrye.openapi.runtime.OpenApiNotFoundHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-smallrye-openapi Show documentation
Show all versions of quarkus-smallrye-openapi Show documentation
Document your REST APIs with OpenAPI - comes with Swagger UI
package io.quarkus.smallrye.openapi.runtime;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
/**
* Handling not found when disabled
*/
public class OpenApiNotFoundHandler implements Handler {
@Override
public void handle(RoutingContext event) {
event.response().setStatusCode(404);
event.response().end();
}
}