Class ComponentDerivationTreeServlet

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

    public class ComponentDerivationTreeServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    Makes a tree of all derived components (connected with sling:resourceSuperType). Usage: wget --user=admin --password=admin -O componenttree.dotty http://localhost:9090/bin/cpm/nodes/debug/componenttree.dotty ;
    ccomps -x componenttree.dotty | dot | gvpack | neato -Tpng -n2 -o componenttree.png ; open componenttree.png
    There can also be a parameter regex to filter the components we consider.

    For mermaid diagram (to include e.g. into Github markdown), use extension .mermaid, e.g. http://localhost:4502/bin/cpm/nodes/debug/componenttree.mermaid?regex=wknd

    See Also:
    Serialized Form
    • Constructor Detail

      • ComponentDerivationTreeServlet

        public ComponentDerivationTreeServlet()
    • Method Detail

      • doGet

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

        protected void deactivate()