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
FieldsModifier and TypeFieldDescriptionstatic final boolean
The default enabled value.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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
The configuration name whether GraphiQL is enabled.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value.- See Also:
-
VERSION
The configuration name of the GraphiQL version.- See Also:
-
DEFAULT_VERSION
The default GraphiQL version.- See Also:
-
PATH
The configuration name of the GraphiQL path.- See Also:
-
DEFAULT_PATH
The default GraphiQL path.- See Also:
-
TEMPLATE_PATH
The configuration name of the GraphiQL template path.- See Also:
-
DEFAULT_TEMPLATE_PATH
The default GraphiQL template path.- See Also:
-
TEMPLATE_PARAMETERS
The configuration name of the GraphiQL template parameters.- See Also:
-
DEFAULT_TEMPLATE_PARAMETERS
The default GraphiQL template parameters. -
PAGE_TITLE
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
-
path
-
templatePath
-
templateParameters
-
pageTitle
-
-
Constructor Details
-
GraphiQLConfiguration
public GraphiQLConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether GraphiQL is enabled.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- whether GraphiQL is enabled
-
getVersion
Returns the GraphiQL version.- Returns:
- the GraphiQL version
-
getPath
Returns the GraphiQL path.- Returns:
- the GraphiQL path
-
getTemplatePath
Returns the GraphiQL template path.- 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.- Returns:
- the GraphiQL page title
-