Class GraphiQLHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.graphql.GraphiQLHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
public class GraphiQLHandler extends Object implements io.vertx.core.Handler<RoutingContext>
A handler for GraphiQL resources. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<GraphiQLHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GraphiQLHandler(io.vertx.ext.web.handler.graphql.GraphiQLHandler delegate)GraphiQLHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static GraphiQLHandlerBuilderbuilder(Vertx vertx)Create a newGraphiQLHandlerBuilderwith defaultGraphiQLHandlerOptions.static GraphiQLHandlercreate()Deprecated.static GraphiQLHandlercreate(io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)Deprecated.static GraphiQLHandlercreate(Vertx vertx)Create a newGraphiQLHandler.static GraphiQLHandlercreate(Vertx vertx, io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)Create a newGraphiQLHandler.booleanequals(Object o)io.vertx.ext.web.handler.graphql.GraphiQLHandlergetDelegate()GraphiQLHandlergraphiQLRequestHeaders(Function<RoutingContext,MultiMap> factory)Deprecated.voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static GraphiQLHandlernewInstance(io.vertx.ext.web.handler.graphql.GraphiQLHandler arg)Routerrouter()Creates a router configured to serve GraphiQL resources.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<GraphiQLHandler> __TYPE_ARG
-
-
Constructor Detail
-
GraphiQLHandler
public GraphiQLHandler(io.vertx.ext.web.handler.graphql.GraphiQLHandler delegate)
-
GraphiQLHandler
public GraphiQLHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.graphql.GraphiQLHandler getDelegate()
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Parameters:
event- the event to handle
-
builder
public static GraphiQLHandlerBuilder builder(Vertx vertx)
Create a newGraphiQLHandlerBuilderwith defaultGraphiQLHandlerOptions.- Parameters:
vertx-- Returns:
-
create
public static GraphiQLHandler create(Vertx vertx)
Create a newGraphiQLHandler.The handler will be configured with default
GraphiQLHandlerOptions.- Parameters:
vertx-- Returns:
-
create
@Deprecated public static GraphiQLHandler create()
Deprecated.Create a newGraphiQLHandler.The handler will be configured with default
GraphiQLHandlerOptions.- Returns:
-
create
public static GraphiQLHandler create(Vertx vertx, io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)
Create a newGraphiQLHandler.The handler will be configured with the given
options.- Parameters:
vertx-options- options for configuring theGraphiQLHandler- Returns:
-
create
@Deprecated public static GraphiQLHandler create(io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)
Deprecated.Create a newGraphiQLHandler.The handler will be configured with the given
options.- Parameters:
options- options for configuring theGraphiQLHandler- Returns:
-
router
public Router router()
Creates a router configured to serve GraphiQL resources.- Returns:
- a router to be mounted on an existing
Route
-
graphiQLRequestHeaders
@Deprecated public GraphiQLHandler graphiQLRequestHeaders(Function<RoutingContext,MultiMap> factory)
Deprecated.Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface. The result will be applied on top of the fixed set of headers specified inGraphiQLHandlerOptions.This can be useful if, for example, the server is protected by authentication.
- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static GraphiQLHandler newInstance(io.vertx.ext.web.handler.graphql.GraphiQLHandler arg)
-
-