public class GraphiQLHandler extends Object implements io.vertx.core.Handler<RoutingContext>
Route handler for GraphiQL resources.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<GraphiQLHandler> |
__TYPE_ARG |
| Constructor and Description |
|---|
GraphiQLHandler(io.vertx.ext.web.handler.graphql.GraphiQLHandler delegate) |
GraphiQLHandler(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
static GraphiQLHandler |
create()
Create a new
GraphiQLHandler. |
static GraphiQLHandler |
create(io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)
Create a new
GraphiQLHandler. |
boolean |
equals(Object o) |
io.vertx.ext.web.handler.graphql.GraphiQLHandler |
getDelegate() |
GraphiQLHandler |
graphiQLRequestHeaders(Function<RoutingContext,MultiMap> factory)
Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface.
|
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static GraphiQLHandler |
newInstance(io.vertx.ext.web.handler.graphql.GraphiQLHandler arg) |
String |
toString() |
public static final TypeArg<GraphiQLHandler> __TYPE_ARG
public GraphiQLHandler(io.vertx.ext.web.handler.graphql.GraphiQLHandler delegate)
public GraphiQLHandler(Object delegate)
public io.vertx.ext.web.handler.graphql.GraphiQLHandler getDelegate()
public void handle(RoutingContext event)
handle in interface io.vertx.core.Handler<RoutingContext>event - the event to handlepublic static GraphiQLHandler create()
GraphiQLHandler.
The handler will be configured with default GraphiQLHandlerOptions.
public static GraphiQLHandler create(io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)
GraphiQLHandler.
The handler will be configured with the given options.
options - options for configuring the GraphiQLHandlerpublic GraphiQLHandler graphiQLRequestHeaders(Function<RoutingContext,MultiMap> factory)
GraphiQLHandlerOptions.
This can be useful if, for example, the server is protected by authentication.
factory - public static GraphiQLHandler newInstance(io.vertx.ext.web.handler.graphql.GraphiQLHandler arg)
Copyright © 2022 Eclipse. All rights reserved.