package io.vertx.rxjava.ext.web.validation;
import rx.Observable;
import rx.Single;
import io.vertx.rx.java.RxHelper;
import io.vertx.rx.java.WriteStreamSubscriber;
import io.vertx.rx.java.SingleOnSubscribeAdapter;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
@RxGen(io.vertx.ext.web.validation.RequestParameters.class)
public class RequestParameters {
@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();
}
public static final TypeArg<RequestParameters> __TYPE_ARG = new 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;
}
public io.vertx.ext.web.validation.RequestParameters getDelegate() {
return delegate;
}
public List<String> pathParametersNames() {
List<String> ret = delegate.pathParametersNames();
return ret;
}
public io.vertx.rxjava.ext.web.validation.RequestParameter pathParameter(String name) {
io.vertx.rxjava.ext.web.validation.RequestParameter ret = io.vertx.rxjava.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.pathParameter(name));
return ret;
}
public List<String> queryParametersNames() {
List<String> ret = delegate.queryParametersNames();
return ret;
}
public io.vertx.rxjava.ext.web.validation.RequestParameter queryParameter(String name) {
io.vertx.rxjava.ext.web.validation.RequestParameter ret = io.vertx.rxjava.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.queryParameter(name));
return ret;
}
public List<String> () {
List<String> ret = delegate.headerParametersNames();
return ret;
}
public io.vertx.rxjava.ext.web.validation.RequestParameter (String name) {
io.vertx.rxjava.ext.web.validation.RequestParameter ret = io.vertx.rxjava.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.headerParameter(name));
return ret;
}
public List<String> cookieParametersNames() {
List<String> ret = delegate.cookieParametersNames();
return ret;
}
public io.vertx.rxjava.ext.web.validation.RequestParameter cookieParameter(String name) {
io.vertx.rxjava.ext.web.validation.RequestParameter ret = io.vertx.rxjava.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.cookieParameter(name));
return ret;
}
public io.vertx.rxjava.ext.web.validation.RequestParameter body() {
io.vertx.rxjava.ext.web.validation.RequestParameter ret = io.vertx.rxjava.ext.web.validation.RequestParameter.newInstance((io.vertx.ext.web.validation.RequestParameter)delegate.body());
return ret;
}
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;
}
}