Class TestResourceDecorator

  • All Implemented Interfaces:
    org.apache.sling.api.resource.ResourceDecorator

    public class TestResourceDecorator
    extends Object
    implements org.apache.sling.api.resource.ResourceDecorator
    Test ResourceDecorator that sets a specific resource type for resources having a path that starts with /testing + simple name of this class + /
    • Constructor Detail

      • TestResourceDecorator

        public TestResourceDecorator()
    • Method Detail

      • decorate

        public org.apache.sling.api.resource.Resource decorate​(org.apache.sling.api.resource.Resource resource,
                                                               javax.servlet.http.HttpServletRequest request)
        Specified by:
        decorate in interface org.apache.sling.api.resource.ResourceDecorator
      • decorate

        public org.apache.sling.api.resource.Resource decorate​(org.apache.sling.api.resource.Resource resource)
        Specified by:
        decorate in interface org.apache.sling.api.resource.ResourceDecorator