public class GraphiQLHandler extends Object implements Handler<RoutingContext>
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<GraphiQLHandler> |
__TYPE_ARG |
Constructor and Description |
---|
GraphiQLHandler(GraphiQLHandler delegate) |
GraphiQLHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static GraphiQLHandler |
create()
Create a new
GraphiQLHandler . |
static GraphiQLHandler |
create(GraphiQLHandlerOptions options)
Create a new
GraphiQLHandler . |
boolean |
equals(Object o) |
GraphiQLHandler |
getDelegate() |
GraphiQLHandler |
graphiQLRequestHeaders(java.util.function.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(GraphiQLHandler arg) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<GraphiQLHandler> __TYPE_ARG
public GraphiQLHandler(GraphiQLHandler delegate)
public GraphiQLHandler(Object delegate)
public GraphiQLHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- the event to handlepublic static GraphiQLHandler create()
GraphiQLHandler
.
The handler will be configured with default GraphiQLHandlerOptions
.
public static GraphiQLHandler create(GraphiQLHandlerOptions options)
GraphiQLHandler
.
The handler will be configured with the given options
.
options
- options for configuring the GraphiQLHandler
public GraphiQLHandler graphiQLRequestHeaders(java.util.function.Function<RoutingContext,MultiMap> factory)
GraphiQLHandlerOptions
.
This can be useful if, for example, the server is protected by authentication.
factory
- public static GraphiQLHandler newInstance(GraphiQLHandler arg)
Copyright © 2023 Eclipse. All rights reserved.