public class GraphiQLHandlerOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
static boolean | 
DEFAULT_ENABLED
Whether GraphiQL development tool should be enabled by default = false. 
 | 
| Constructor and Description | 
|---|
GraphiQLHandlerOptions()
Default constructor. 
 | 
GraphiQLHandlerOptions(GraphiQLHandlerOptions other)
Copy constructor. 
 | 
GraphiQLHandlerOptions(JsonObject json)
Constructor to create options from JSON. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getGraphQLUri()  | 
Map<String,String> | 
getHeaders()  | 
String | 
getQuery()  | 
JsonObject | 
getVariables()  | 
boolean | 
isEnabled()  | 
GraphiQLHandlerOptions | 
setEnabled(boolean enabled)
Whether the GraphiQL development tool should be enabled. 
 | 
GraphiQLHandlerOptions | 
setGraphQLUri(String graphQLUri)
Set the GraphQL endpoint URI. 
 | 
GraphiQLHandlerOptions | 
setHeaders(Map<String,String> headers)
A fixed set of HTTP headers to add to GraphiQL requests. 
 | 
GraphiQLHandlerOptions | 
setQuery(String query)
Initial value of the query area in the GraphiQL user interface. 
 | 
GraphiQLHandlerOptions | 
setVariables(JsonObject variables)
Initial value of the variables area in the GraphiQL user interface. 
 | 
JsonObject | 
toJson()  | 
public static final boolean DEFAULT_ENABLED
public GraphiQLHandlerOptions()
public GraphiQLHandlerOptions(GraphiQLHandlerOptions other)
other - the options to copypublic GraphiQLHandlerOptions(JsonObject json)
json - the JSONpublic JsonObject toJson()
public boolean isEnabled()
public GraphiQLHandlerOptions setEnabled(boolean enabled)
false.enabled - true to enable the GraphiQL development tool, false otherwisepublic String getGraphQLUri()
public GraphiQLHandlerOptions setGraphQLUri(String graphQLUri)
graphQLUri - the GraphQL endpoint URIpublic Map<String,String> getHeaders()
public GraphiQLHandlerOptions setHeaders(Map<String,String> headers)
null.headers - the set of HTTP headers to add to GraphiQL requestspublic String getQuery()
public GraphiQLHandlerOptions setQuery(String query)
null.query - the query to set as initial valuepublic JsonObject getVariables()
public GraphiQLHandlerOptions setVariables(JsonObject variables)
null.variables - the variables to set as initial valueCopyright © 2020 Eclipse. All rights reserved.