Class AbstractReadableResourceProvider
java.lang.Object
org.apache.sling.distribution.resources.impl.common.AbstractReadableResourceProvider
- All Implemented Interfaces:
org.apache.sling.api.resource.ResourceProvider
- Direct Known Subclasses:
AbstractModifyingResourceProvider
public abstract class AbstractReadableResourceProvider
extends Object
implements org.apache.sling.api.resource.ResourceProvider
a readable
ResourceProvider for distribution.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringstatic final Stringprotected static final Stringprotected static final StringFields inherited from interface org.apache.sling.api.resource.ResourceProvider
OWNS_ROOTS, RESOURCE_TYPE_SYNTHETIC, ROOTS, SERVICE_NAME, USE_RESOURCE_ACCESS_SECURITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo) getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo) org.apache.sling.api.resource.ResourcegetResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) org.apache.sling.api.resource.ResourcegetResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, javax.servlet.http.HttpServletRequest request, String path) Iterator<org.apache.sling.api.resource.Resource> listChildren(org.apache.sling.api.resource.Resource parent)
-
Field Details
-
INTERNAL_ADAPTABLE
- See Also:
-
INTERNAL_NAME
- See Also:
-
INTERNAL_ITEMS_ITERATOR
- See Also:
-
ITEMS
- See Also:
-
SLING_RESOURCE_TYPE
- See Also:
-
-
Constructor Details
-
AbstractReadableResourceProvider
-
-
Method Details
-
getResource
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, javax.servlet.http.HttpServletRequest request, String path) - Specified by:
getResourcein interfaceorg.apache.sling.api.resource.ResourceProvider
-
getResource
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path) - Specified by:
getResourcein interfaceorg.apache.sling.api.resource.ResourceProvider
-
listChildren
public Iterator<org.apache.sling.api.resource.Resource> listChildren(org.apache.sling.api.resource.Resource parent) - Specified by:
listChildrenin interfaceorg.apache.sling.api.resource.ResourceProvider
-
getInternalResourceProperties
protected abstract Map<String,Object> getInternalResourceProperties(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo) -
getInternalResourceChildren
protected abstract Iterable<String> getInternalResourceChildren(org.apache.sling.api.resource.ResourceResolver resolver, SimplePathInfo pathInfo)
-