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

io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandlerBuilder Maven / Gradle / Ivy

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

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.function.Function;
import io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions;

/**
 * A builder for {@link io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandler} instances.
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder.class) public class GraphiQLHandlerBuilder { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new GraphiQLHandlerBuilder((io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder) obj), GraphiQLHandlerBuilder::getDelegate ); private final io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder delegate; public GraphiQLHandlerBuilder(io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder delegate) { this.delegate = delegate; } public GraphiQLHandlerBuilder(Object delegate) { this.delegate = (io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ GraphiQLHandlerBuilder() { this.delegate = null; } public io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder 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; GraphiQLHandlerBuilder that = (GraphiQLHandlerBuilder) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param options * @return a reference to this, so the API can be used fluently */ @Fluent public io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandlerBuilder with(io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options) { delegate.with(options); return this; } /** * @param factory * @return a reference to this, so the API can be used fluently */ @Fluent public io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandlerBuilder addingHeaders(Function factory) { delegate.addingHeaders(new java.util.function.Function() { public io.vertx.core.MultiMap apply(io.vertx.ext.web.RoutingContext arg) { io.vertx.mutiny.core.MultiMap ret = factory.apply(io.vertx.mutiny.ext.web.RoutingContext.newInstance((io.vertx.ext.web.RoutingContext)arg)); return ret.getDelegate(); } }); return this; } /** * @return a new instance of {@link io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandler} */ public io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandler build() { io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandler ret = io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandler.newInstance((io.vertx.ext.web.handler.graphql.GraphiQLHandler)delegate.build()); return ret; } public static GraphiQLHandlerBuilder newInstance(io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder arg) { return arg != null ? new GraphiQLHandlerBuilder(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy