Class RenderedResourceImpl

    • Constructor Detail

      • RenderedResourceImpl

        @Inject
        public RenderedResourceImpl​(org.apache.sling.api.SlingHttpServletRequest request,
                                    org.apache.sling.caconfig.resource.ConfigurationResourceResolver configResourceResolver,
                                    RenditionSupport renditionSupport,
                                    ThumbnailSupport thumbnailSupport)
    • Method Detail

      • getRenditions

        public List<org.apache.sling.api.resource.Resource> getRenditions()
        Description copied from interface: RenderedResource
        Get the renditions for the requested resource
        Specified by:
        getRenditions in interface RenderedResource
        Returns:
        the renditions for the resource
      • getRenditionsPath

        public String getRenditionsPath()
        Description copied from interface: RenderedResource
        Get the relative path to the renditions within the resource, e.g. jcr:content/renditions
        Specified by:
        getRenditionsPath in interface RenderedResource
        Returns:
        the relative path to the renditions
      • getSupportedRenditions

        public List<String> getSupportedRenditions()
        Description copied from interface: RenderedResource
        Gets all of the supported renditions for this resource, e.g. the union of the transformations defined in this resource's CA Configs without extensions and the existing renditions (with extensions)
        Specified by:
        getSupportedRenditions in interface RenderedResource
        Returns:
        the list of the supported renditions