public abstract class AbstractReadableResourceProvider extends Object implements org.apache.sling.api.resource.ResourceProvider
ResourceProvider
for distribution.Modifier and Type | Field and Description |
---|---|
protected static String |
INTERNAL_ADAPTABLE |
protected static String |
INTERNAL_ITEMS_ITERATOR |
static String |
INTERNAL_NAME |
protected static String |
ITEMS |
protected static String |
SLING_RESOURCE_TYPE |
Modifier | Constructor and Description |
---|---|
protected |
AbstractReadableResourceProvider(String resourceRoot) |
Modifier and Type | Method and Description |
---|---|
protected abstract Iterable<String> |
getInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver,
SimplePathInfo pathInfo) |
protected abstract Map<String,Object> |
getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver,
SimplePathInfo pathInfo) |
org.apache.sling.api.resource.Resource |
getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
String path) |
org.apache.sling.api.resource.Resource |
getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path) |
Iterator<org.apache.sling.api.resource.Resource> |
listChildren(org.apache.sling.api.resource.Resource parent) |
protected static final String INTERNAL_ADAPTABLE
public static final String INTERNAL_NAME
protected static final String INTERNAL_ITEMS_ITERATOR
protected static final String ITEMS
protected static final String SLING_RESOURCE_TYPE
protected AbstractReadableResourceProvider(String resourceRoot)
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, javax.servlet.http.HttpServletRequest request, String path)
getResource
in interface org.apache.sling.api.resource.ResourceProvider
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path)
getResource
in interface org.apache.sling.api.resource.ResourceProvider
public Iterator<org.apache.sling.api.resource.Resource> listChildren(org.apache.sling.api.resource.Resource parent)
listChildren
in interface org.apache.sling.api.resource.ResourceProvider
protected abstract Map<String,Object> getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
protected abstract Iterable<String> getInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.