public class GraphQLConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
GraphQLConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static GraphQLConfiguration |
fromJson(org.json.JSONObject json)
Parse a
GraphQLConfiguration from json. |
java.lang.String |
getUrl() |
boolean |
isEnabled() |
boolean |
isFeatureEnabled(java.lang.String feature)
Check if a specific feature is enabled in the GraphQL API.
|
public static GraphQLConfiguration fromJson(org.json.JSONObject json)
GraphQLConfiguration from json.json - The JSONObject to parse.GraphQLConfiguration instance with the data that was able to be parsed from the JSONObject.public boolean isEnabled()
true if GraphQL is enabled, false otherwise.public java.lang.String getUrl()
public boolean isFeatureEnabled(java.lang.String feature)
feature - The feature to check.true if GraphQL is enabled and the feature is enabled, false otherwise.