Class GraphQLConfiguration.GraphiQLConfiguration
java.lang.Object
io.micronaut.configuration.graphql.GraphQLConfiguration.GraphiQLConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- GraphQLConfiguration
@ConfigurationProperties("graphiql")
public static class GraphQLConfiguration.GraphiQLConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Configuration properties for GraphiQL.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enabled value.static final String
The default GraphIQL Explorer plugin version.static final String
The default GraphiQL page title.static final String
The default GraphiQL path.The default GraphiQL template parameters.static final String
The default GraphiQL template path.static final String
The default GraphiQL version.protected boolean
static final String
The configuration name whether GraphiQL is enabled.static final String
The configuration name of the GraphIQL Explorer plugin version.protected String
static final String
The configuration name of the GraphiQL page title.protected String
protected String
static final String
The configuration name of the GraphiQL path.static final String
The prefix to use for all GraphiQL configuration properties.static final String
The configuration name of the GraphiQL template parameters.static final String
The configuration name of the GraphiQL template path.protected String
protected String
static final String
The configuration name of the GraphiQL version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the GraphIQL Explorer plugin version.Returns the GraphiQL page title.getPath()
Returns the GraphiQL path.Returns the GraphiQL template parameters to be substituted in the template.Returns the GraphiQL template path.Returns the GraphiQL version.boolean
Returns whether GraphiQL is enabled.
-
Field Details
-
PREFIX
The prefix to use for all GraphiQL configuration properties.- See Also:
-
ENABLED_CONFIG
The configuration name whether GraphiQL is enabled.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value.- See Also:
-
VERSION_CONFIG
The configuration name of the GraphiQL version.- See Also:
-
EXPLORER_PLUGIN_VERSION
The configuration name of the GraphIQL Explorer plugin version.- Since:
- 4.1
- See Also:
-
DEFAULT_VERSION
The default GraphiQL version.- See Also:
-
DEFAULT_EXPLORER_PLUGIN_VERSION
The default GraphIQL Explorer plugin version.- Since:
- 4.1
- See Also:
-
PATH_CONFIG
The configuration name of the GraphiQL path.- See Also:
-
DEFAULT_PATH
The default GraphiQL path.- See Also:
-
TEMPLATE_PATH_CONFIG
The configuration name of the GraphiQL template path.- See Also:
-
DEFAULT_TEMPLATE_PATH
The default GraphiQL template path.- See Also:
-
TEMPLATE_PARAMETERS_CONFIG
The configuration name of the GraphiQL template parameters.- See Also:
-
DEFAULT_TEMPLATE_PARAMETERS
The default GraphiQL template parameters. -
PAGE_TITLE_CONFIG
The configuration name of the GraphiQL page title.- See Also:
-
DEFAULT_PAGE_TITLE
The default GraphiQL page title.- See Also:
-
enabled
protected boolean enabled -
version
-
explorerPluginVersion
-
path
-
templatePath
-
templateParameters
-
pageTitle
-
-
Constructor Details
-
GraphiQLConfiguration
public GraphiQLConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether GraphiQL is enabled. Default value (false).- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- whether GraphiQL is enabled
-
getVersion
Returns the GraphiQL version. Default value ("3.0.6").- Returns:
- the GraphiQL version
-
getExplorerPluginVersion
Returns the GraphIQL Explorer plugin version. Default value ("0.3.5").- Returns:
- the GraphIQL Explorer plugin version
- Since:
- 4.1
-
getPath
Returns the GraphiQL path. Default value ("/graphiql").- Returns:
- the GraphiQL path
-
getTemplatePath
Returns the GraphiQL template path. Default value ("classpath:graphiql/index.html").- Returns:
- the GraphiQL template path
-
getTemplateParameters
Returns the GraphiQL template parameters to be substituted in the template.- Returns:
- the GraphiQL template parameters
-
getPageTitle
Returns the GraphiQL page title. Default value ("GraphiQL").- Returns:
- the GraphiQL page title
-