Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8170

Allow Sling servlets to declare a resource super type

    XMLWordPrintableJSON

Details

    Description

      In Sling scripts and servlets are equal [0]. However, currently a servlet cannot declare a resource super type property, in order to allow delegation / overlaying at runtime to another servlet, similar to how component scripts can do it through the sling:resourceSuperType optional property.

      Adding support for another registration property - sling.servlet.resourceSuperType - that accepts a String as value would allow to introduce a backwards compatible overlaying and inheritance capability. This property should only be considered for the registration together with the sling.servlet.resourceTypes.

      [0]https://sling.apache.org/documentation/the-sling-engine/url-to-script-resolution.html#fundamental-scripts-and-servlets-are-equal

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h