Class ListJcrTreeServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ListJcrTreeServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    This servlet enables listing the resources in a JCR subtree - mainly for the publish instance, where there is no CRX. It requires a resource in a published page that has the sling:resourceType cpm/nodes/debug/listtree , and then lists the suffix when a GET is triggered on that resource.

    CAUTION: not suitable for production, only for internal testing systems! It does, however, require a configuration, so it won't be active on systems where it is not configured.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate​(ListJcrTreeServlet.Configuration config)  
      protected void deactivate()  
      protected void doGet​(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)  
      • Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet

        doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
    • Constructor Detail

      • ListJcrTreeServlet

        public ListJcrTreeServlet()
    • Method Detail

      • doGet

        protected void doGet​(org.apache.sling.api.SlingHttpServletRequest request,
                             org.apache.sling.api.SlingHttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • deactivate

        protected void deactivate()