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

io.vertx.mutiny.ext.web.validation.RequestParameters Maven / Gradle / Ivy

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

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 java.util.List;
import io.vertx.core.json.JsonObject;

/**
 * Container for request parameters
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.validation.RequestParameters original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.validation.RequestParameters.class) public class RequestParameters { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new RequestParameters((io.vertx.ext.web.validation.RequestParameters) obj), RequestParameters::getDelegate ); private final io.vertx.ext.web.validation.RequestParameters delegate; public RequestParameters(io.vertx.ext.web.validation.RequestParameters delegate) { this.delegate = delegate; } public RequestParameters(Object delegate) { this.delegate = (io.vertx.ext.web.validation.RequestParameters)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ RequestParameters() { this.delegate = null; } public io.vertx.ext.web.validation.RequestParameters 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; RequestParameters that = (RequestParameters) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @return */ public List pathParametersNames() { List ret = delegate.pathParametersNames(); return ret; } /** * @param name Parameter name * @return */ public io.vertx.mutiny.ext.web.validation.RequestParameter pathParameter(String name) { io.vertx.mutiny.ext.web.validation.RequestParameter ret = io.vertx.mutiny.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.pathParameter(name)); return ret; } /** * @return */ public List queryParametersNames() { List ret = delegate.queryParametersNames(); return ret; } /** * @param name Parameter name * @return */ public io.vertx.mutiny.ext.web.validation.RequestParameter queryParameter(String name) { io.vertx.mutiny.ext.web.validation.RequestParameter ret = io.vertx.mutiny.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.queryParameter(name)); return ret; } /** * @return */ public List headerParametersNames() { List ret = delegate.headerParametersNames(); return ret; } /** * @param name Parameter name * @return */ public io.vertx.mutiny.ext.web.validation.RequestParameter headerParameter(String name) { io.vertx.mutiny.ext.web.validation.RequestParameter ret = io.vertx.mutiny.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.headerParameter(name)); return ret; } /** * @return */ public List cookieParametersNames() { List ret = delegate.cookieParametersNames(); return ret; } /** * @param name Parameter name * @return */ public io.vertx.mutiny.ext.web.validation.RequestParameter cookieParameter(String name) { io.vertx.mutiny.ext.web.validation.RequestParameter ret = io.vertx.mutiny.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.cookieParameter(name)); return ret; } /** * @return */ public io.vertx.mutiny.ext.web.validation.RequestParameter body() { io.vertx.mutiny.ext.web.validation.RequestParameter ret = io.vertx.mutiny.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.body()); return ret; } /** * @return */ public JsonObject toJson() { if (cached_0 != null) { return cached_0; } JsonObject ret = delegate.toJson(); cached_0 = ret; return ret; } private JsonObject cached_0; public static RequestParameters newInstance(io.vertx.ext.web.validation.RequestParameters arg) { return arg != null ? new RequestParameters(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy