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 Details

  • Constructor Details

    • AbstractReadableResourceProvider

      protected AbstractReadableResourceProvider(String resourceRoot)
  • 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:
      getResource in interface org.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:
      getResource in interface org.apache.sling.api.resource.ResourceProvider
    • listChildren

      public Iterator<org.apache.sling.api.resource.Resource> listChildren(org.apache.sling.api.resource.Resource parent)
      Specified by:
      listChildren in interface org.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)