com.day.cq.extwidget.servlets
Class ExtTreeServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.day.cq.commons.servlets.AbstractPredicateServlet
com.day.cq.extwidget.servlets.ExtTreeServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class ExtTreeServlet
- extends AbstractPredicateServlet
Exports the resource tree at the addressed resource in JSON format to the response.
This can be used by the EXT tree loader
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INFINITY
public static final String INFINITY
- infinite recursion level
- See Also:
- Constant Field Values
TIDY
public static final String TIDY
- name of the tidy parameter
- See Also:
- Constant Field Values
ExtTreeServlet
public ExtTreeServlet()
doGet
protected void doGet(SlingHttpServletRequest req,
SlingHttpServletResponse resp,
org.apache.commons.collections.Predicate predicate)
throws ServletException,
IOException
- Handles the HTTP GET method
- Overrides:
doGet in class AbstractPredicateServlet
- Parameters:
req - The HTTP requestresp - The HTTP responsepredicate - the predicate retrieved from the request
- Throws:
ServletException - if a servlet error occurs
IOException - if an I/O error occurs
selectorPredicateStart
protected int selectorPredicateStart()
- Returns the index of the first selector that should be considered when
retrieving the predicates for this servlet.
- Overrides:
selectorPredicateStart in class AbstractPredicateServlet
- Returns:
- 2
Copyright © 2011-2012 Adobe Systems Incorporated. All Rights Reserved.