Package com.composum.nodes.debugutil
Class ListJcrTreeServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.composum.nodes.debugutil.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ListJcrTreeServlet.Configuration
-
Constructor Summary
Constructors Constructor Description ListJcrTreeServlet()
-
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
-
-
-
-
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 classorg.apache.sling.api.servlets.SlingSafeMethodsServlet
- Throws:
javax.servlet.ServletException
IOException
-
activate
protected void activate(ListJcrTreeServlet.Configuration config)
-
deactivate
protected void deactivate()
-
-