public class DefaultSchemaProvider extends Object implements SchemaProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCHEMA |
static String |
SCHEMA_EXTENSION |
static int |
SERVICE_RANKING |
| Constructor and Description |
|---|
DefaultSchemaProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSchema(org.apache.sling.api.resource.Resource r,
String[] selectors)
Get a GraphQL Schema definition for the given resource and optional selectors
|
public static final int SERVICE_RANKING
public static final String SCHEMA_EXTENSION
public static final String DEFAULT_SCHEMA
public String getSchema(org.apache.sling.api.resource.Resource r, String[] selectors) throws IOException
SchemaProvidergetSchema in interface SchemaProviderr - The Resource to which the schema appliesselectors - Optional set of Request Selectors that can influence the schema selectionIOException - if the schema cannot be retrievedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.