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

io.vertx.mutiny.ext.web.handler.ChainAuthHandler Maven / Gradle / Ivy

The newest version!
package io.vertx.mutiny.ext.web.handler;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;

/**
 * An auth handler that chains to a sequence of handlers.
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.handler.ChainAuthHandler original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.ChainAuthHandler.class) public class ChainAuthHandler implements io.vertx.mutiny.ext.web.handler.AuthenticationHandler, io.vertx.core.Handler, java.util.function.Consumer { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ChainAuthHandler((io.vertx.ext.web.handler.ChainAuthHandler) obj), ChainAuthHandler::getDelegate ); private final io.vertx.ext.web.handler.ChainAuthHandler delegate; public ChainAuthHandler(io.vertx.ext.web.handler.ChainAuthHandler delegate) { this.delegate = delegate; } public ChainAuthHandler(Object delegate) { this.delegate = (io.vertx.ext.web.handler.ChainAuthHandler)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ ChainAuthHandler() { this.delegate = null; } public io.vertx.ext.web.handler.ChainAuthHandler getDelegate() { return delegate; } @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ChainAuthHandler that = (ChainAuthHandler) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public void handle(io.vertx.mutiny.ext.web.RoutingContext arg0) { delegate.handle(arg0.getDelegate()); } /** * @return * @deprecated use {@link #any()} instead. */ @Deprecated public static io.vertx.mutiny.ext.web.handler.ChainAuthHandler create() { io.vertx.mutiny.ext.web.handler.ChainAuthHandler ret = io.vertx.mutiny.ext.web.handler.ChainAuthHandler.newInstance((io.vertx.ext.web.handler.ChainAuthHandler)io.vertx.ext.web.handler.ChainAuthHandler.create()); return ret; } /** * @return a new chain authentication handler */ public static io.vertx.mutiny.ext.web.handler.ChainAuthHandler all() { io.vertx.mutiny.ext.web.handler.ChainAuthHandler ret = io.vertx.mutiny.ext.web.handler.ChainAuthHandler.newInstance((io.vertx.ext.web.handler.ChainAuthHandler)io.vertx.ext.web.handler.ChainAuthHandler.all()); return ret; } /** * @return a new chain authentication handler */ public static io.vertx.mutiny.ext.web.handler.ChainAuthHandler any() { io.vertx.mutiny.ext.web.handler.ChainAuthHandler ret = io.vertx.mutiny.ext.web.handler.ChainAuthHandler.newInstance((io.vertx.ext.web.handler.ChainAuthHandler)io.vertx.ext.web.handler.ChainAuthHandler.any()); return ret; } /** * @param other auth handler * @return self */ @Fluent public io.vertx.mutiny.ext.web.handler.ChainAuthHandler add(io.vertx.mutiny.ext.web.handler.AuthenticationHandler other) { delegate.add(other.getDelegate()); return this; } public void accept(io.vertx.mutiny.ext.web.RoutingContext item) { handle(item); } public static ChainAuthHandler newInstance(io.vertx.ext.web.handler.ChainAuthHandler arg) { return arg != null ? new ChainAuthHandler(arg) : null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy