@ConfigurationProperties(value="graphql")
public class GraphQLConfiguration
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
Modifier and Type | Class and Description |
---|---|
static class |
GraphQLConfiguration.GraphiQLConfiguration
Configuration properties for GraphiQL.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enabled value.
|
static java.lang.String |
DEFAULT_PATH
The default GraphQL path.
|
protected boolean |
enabled |
static java.lang.String |
ENABLED
The configuration name whether GraphQL is enabled.
|
protected GraphQLConfiguration.GraphiQLConfiguration |
graphiql |
protected java.lang.String |
path |
static java.lang.String |
PATH
The configuration name of the GraphQL path.
|
static java.lang.String |
PREFIX
The prefix to use for all GraphQL configuration properties.
|
Constructor and Description |
---|
GraphQLConfiguration() |
Modifier and Type | Method and Description |
---|---|
GraphQLConfiguration.GraphiQLConfiguration |
getGraphiql()
Returns the GraphiQL configuration.
|
java.lang.String |
getPath()
Returns the GraphQL path.
|
boolean |
isEnabled()
Returns whether GraphQL is enabled.
|
public static final java.lang.String PREFIX
public static final java.lang.String ENABLED
public static final boolean DEFAULT_ENABLED
public static final java.lang.String PATH
public static final java.lang.String DEFAULT_PATH
protected boolean enabled
protected java.lang.String path
protected GraphQLConfiguration.GraphiQLConfiguration graphiql
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public java.lang.String getPath()
public GraphQLConfiguration.GraphiQLConfiguration getGraphiql()