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

io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder Maven / Gradle / Ivy

There is a newer version: 3.17.1
Show newest version
package io.vertx.mutiny.ext.web.validation.builder;

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;
import io.vertx.ext.web.validation.impl.ParameterLocation;
import io.vertx.ext.web.validation.impl.parameter.ParameterProcessor;
import io.vertx.ext.web.validation.impl.body.BodyProcessor;

/**
 * Builder for a . 
* * For more info look the docs * *

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.validation.builder.ValidationHandlerBuilder original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.validation.builder.ValidationHandlerBuilder.class) public class ValidationHandlerBuilder { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ValidationHandlerBuilder((io.vertx.ext.web.validation.builder.ValidationHandlerBuilder) obj), ValidationHandlerBuilder::getDelegate ); private final io.vertx.ext.web.validation.builder.ValidationHandlerBuilder delegate; public ValidationHandlerBuilder(io.vertx.ext.web.validation.builder.ValidationHandlerBuilder delegate) { this.delegate = delegate; } public ValidationHandlerBuilder(Object delegate) { this.delegate = (io.vertx.ext.web.validation.builder.ValidationHandlerBuilder)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ ValidationHandlerBuilder() { this.delegate = null; } public io.vertx.ext.web.validation.builder.ValidationHandlerBuilder 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; ValidationHandlerBuilder that = (ValidationHandlerBuilder) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder queryParameter(io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory parameterProcessor) { delegate.queryParameter(parameterProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder queryParameter(io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory parameterProcessor) { delegate.queryParameter(parameterProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder pathParameter(io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory parameterProcessor) { delegate.pathParameter(parameterProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder cookieParameter(io.vertx.mutiny.ext.web.validation.builder.StyledParameterProcessorFactory parameterProcessor) { delegate.cookieParameter(parameterProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder cookieParameter(io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory parameterProcessor) { delegate.cookieParameter(parameterProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder headerParameter(io.vertx.mutiny.ext.web.validation.builder.ParameterProcessorFactory parameterProcessor) { delegate.headerParameter(parameterProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder body(io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory bodyProcessor) { delegate.body(bodyProcessor.getDelegate()); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder predicate(io.vertx.mutiny.ext.web.validation.RequestPredicate predicate) { delegate.predicate(predicate.getDelegate()); return this; } public static io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder create(io.vertx.mutiny.json.schema.SchemaParser parser) { io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder ret = io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder.newInstance((io.vertx.ext.web.validation.builder.ValidationHandlerBuilder)io.vertx.ext.web.validation.builder.ValidationHandlerBuilder.create(parser.getDelegate())); return ret; } /** * @param location * @param processor * @return */ @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder parameter(io.vertx.ext.web.validation.impl.ParameterLocation location, io.vertx.ext.web.validation.impl.parameter.ParameterProcessor processor) { delegate.parameter(location, processor); return this; } @Fluent public io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder body(io.vertx.ext.web.validation.impl.body.BodyProcessor bodyProcessor) { delegate.body(bodyProcessor); return this; } /** * @return */ public io.vertx.mutiny.ext.web.validation.ValidationHandler build() { io.vertx.mutiny.ext.web.validation.ValidationHandler ret = io.vertx.mutiny.ext.web.validation.ValidationHandler.newInstance((io.vertx.ext.web.validation.ValidationHandler)delegate.build()); return ret; } public static ValidationHandlerBuilder newInstance(io.vertx.ext.web.validation.builder.ValidationHandlerBuilder arg) { return arg != null ? new ValidationHandlerBuilder(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy