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

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

The 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.json.schema.common.dsl.StringSchemaBuilder;
import io.vertx.json.schema.common.dsl.SchemaBuilder;
import io.vertx.json.schema.common.dsl.ObjectSchemaBuilder;

/**
 * In this interface you can find all available {@link io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory} to use in {@link io.vertx.mutiny.ext.web.validation.builder.ValidationHandlerBuilder}. 
* * To create new schemas using , look at the docs of vertx-json-schema * *

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.validation.builder.Bodies original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.validation.builder.Bodies.class) public class Bodies { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new Bodies((io.vertx.ext.web.validation.builder.Bodies) obj), Bodies::getDelegate ); private final io.vertx.ext.web.validation.builder.Bodies delegate; public Bodies(io.vertx.ext.web.validation.builder.Bodies delegate) { this.delegate = delegate; } public Bodies(Object delegate) { this.delegate = (io.vertx.ext.web.validation.builder.Bodies)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ Bodies() { this.delegate = null; } public io.vertx.ext.web.validation.builder.Bodies 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; Bodies that = (Bodies) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory json(io.vertx.json.schema.common.dsl.SchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.BodyProcessorFactory)io.vertx.ext.web.validation.builder.Bodies.json(schemaBuilder)); return ret; } /** * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory textPlain(io.vertx.json.schema.common.dsl.StringSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.BodyProcessorFactory)io.vertx.ext.web.validation.builder.Bodies.textPlain(schemaBuilder)); return ret; } /** * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory formUrlEncoded(io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.BodyProcessorFactory)io.vertx.ext.web.validation.builder.Bodies.formUrlEncoded(schemaBuilder)); return ret; } /** * @param schemaBuilder * @return */ public static io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory multipartFormData(io.vertx.json.schema.common.dsl.ObjectSchemaBuilder schemaBuilder) { io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory ret = io.vertx.mutiny.ext.web.validation.builder.BodyProcessorFactory.newInstance((io.vertx.ext.web.validation.builder.BodyProcessorFactory)io.vertx.ext.web.validation.builder.Bodies.multipartFormData(schemaBuilder)); return ret; } public static Bodies newInstance(io.vertx.ext.web.validation.builder.Bodies arg) { return arg != null ? new Bodies(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy