Package io.vertx.ext.web.handler.graphql
Interface GraphiQLHandler
-
public interface GraphiQLHandler
A handler for GraphiQL resources.- Author:
- Thomas Segismont
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static GraphiQLHandlerBuilder
builder(Vertx vertx)
Create a newGraphiQLHandlerBuilder
with defaultGraphiQLHandlerOptions
.static GraphiQLHandler
create(Vertx vertx)
Create a newGraphiQLHandler
.static GraphiQLHandler
create(Vertx vertx, GraphiQLHandlerOptions options)
Create a newGraphiQLHandler
.Router
router()
Creates a router configured to serve GraphiQL resources.
-
-
-
Method Detail
-
create
static GraphiQLHandler create(Vertx vertx)
Create a newGraphiQLHandler
.The handler will be configured with default
options
.
-
create
static GraphiQLHandler create(Vertx vertx, GraphiQLHandlerOptions options)
Create a newGraphiQLHandler
.The handler will be configured with the given
options
.- Parameters:
options
- options for configuring theGraphiQLHandler
-
builder
static GraphiQLHandlerBuilder builder(Vertx vertx)
Create a newGraphiQLHandlerBuilder
with defaultGraphiQLHandlerOptions
.
-
router
Router router()
Creates a router configured to serve GraphiQL resources.- Returns:
- a router to be mounted on an existing
Route
- See Also:
Route.subRouter(Router)
-
-