public interface GraphiQLHandler extends Handler<RoutingContext>
Modifier and Type | Method and Description |
---|---|
static GraphiQLHandlerBuilder |
builder(Vertx vertx)
Create a new
GraphiQLHandlerBuilder with default GraphiQLHandlerOptions . |
static GraphiQLHandler |
create()
Deprecated.
as of 4.5.1, use
create(Vertx) , with router() |
static GraphiQLHandler |
create(GraphiQLHandlerOptions options)
Deprecated.
as of 4.5.1, use
create(Vertx, GraphiQLHandlerOptions) , with router() |
static GraphiQLHandler |
create(Vertx vertx)
Create a new
GraphiQLHandler . |
static GraphiQLHandler |
create(Vertx vertx,
GraphiQLHandlerOptions options)
Create a new
GraphiQLHandler . |
GraphiQLHandler |
graphiQLRequestHeaders(java.util.function.Function<RoutingContext,MultiMap> factory)
Deprecated.
as of 4.5.1, use
builder(Vertx) instead |
Router |
router()
Creates a router configured to serve GraphiQL resources.
|
static GraphiQLHandlerBuilder builder(Vertx vertx)
GraphiQLHandlerBuilder
with default GraphiQLHandlerOptions
.static GraphiQLHandler create(Vertx vertx)
GraphiQLHandler
.
The handler will be configured with default options
.
@Deprecated static GraphiQLHandler create()
create(Vertx)
, with router()
GraphiQLHandler
.
The handler will be configured with default options
.
static GraphiQLHandler create(Vertx vertx, GraphiQLHandlerOptions options)
GraphiQLHandler
.
The handler will be configured with the given options
.
options
- options for configuring the GraphiQLHandler
@Deprecated static GraphiQLHandler create(GraphiQLHandlerOptions options)
create(Vertx, GraphiQLHandlerOptions)
, with router()
GraphiQLHandler
.
The handler will be configured with the given options
.
options
- options for configuring the GraphiQLHandler
Router router()
Route
Route.subRouter(Router)
@Deprecated GraphiQLHandler graphiQLRequestHeaders(java.util.function.Function<RoutingContext,MultiMap> factory)
builder(Vertx)
insteadGraphiQLHandlerOptions.getHeaders()
.
This can be useful if, for example, the server is protected by authentication.
Copyright © 2024 Eclipse. All rights reserved.