Class GraphQLConfiguration
- java.lang.Object
-
- io.micronaut.configuration.graphql.GraphQLConfiguration
-
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("graphql") public class GraphQLConfiguration extends java.lang.Object implements io.micronaut.core.util.ToggleableConfiguration properties for GraphQL.- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphQLConfiguration.GraphiQLConfigurationConfiguration properties for GraphiQL.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEDThe default enabled value.static java.lang.StringDEFAULT_PATHThe default GraphQL path.protected booleanenabledstatic java.lang.StringENABLEDThe configuration name whether GraphQL is enabled.protected GraphQLConfiguration.GraphiQLConfigurationgraphiqlprotected java.lang.Stringpathstatic java.lang.StringPATHThe configuration name of the GraphQL path.static java.lang.StringPREFIXThe prefix to use for all GraphQL configuration properties.
-
Constructor Summary
Constructors Constructor Description GraphQLConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLConfiguration.GraphiQLConfigurationgetGraphiql()Returns the GraphiQL configuration.java.lang.StringgetPath()Returns the GraphQL path.booleanisEnabled()Returns whether GraphQL is enabled.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
The prefix to use for all GraphQL configuration properties.- See Also:
- Constant Field Values
-
ENABLED
public static final java.lang.String ENABLED
The configuration name whether GraphQL is enabled.- See Also:
- Constant Field Values
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
The default enabled value.- See Also:
- Constant Field Values
-
PATH
public static final java.lang.String PATH
The configuration name of the GraphQL path.- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default GraphQL path.- See Also:
- Constant Field Values
-
enabled
protected boolean enabled
-
path
protected java.lang.String path
-
graphiql
protected GraphQLConfiguration.GraphiQLConfiguration graphiql
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns whether GraphQL is enabled.- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
- whether GraphQL is enabled
-
getPath
public java.lang.String getPath()
Returns the GraphQL path.- Returns:
- the GraphQL path
-
getGraphiql
public GraphQLConfiguration.GraphiQLConfiguration getGraphiql()
Returns the GraphiQL configuration.- Returns:
- the GraphiQL configuration
-
-