com.day.cq.extwidget.servlets
Class ExtTreeServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.sling.api.servlets.SlingSafeMethodsServlet
          extended by org.apache.sling.api.servlets.SlingAllMethodsServlet
              extended by com.day.cq.commons.servlets.AbstractPredicateServlet
                  extended by 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

Field Summary
static String INFINITY
          infinite recursion level
static String TIDY
          name of the tidy parameter
 
Fields inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM
 
Constructor Summary
ExtTreeServlet()
           
 
Method Summary
protected  void doGet(SlingHttpServletRequest req, SlingHttpServletResponse resp, org.apache.commons.collections.Predicate predicate)
          Handles the HTTP GET method
protected  int selectorPredicateStart()
          Returns the index of the first selector that should be considered when retrieving the predicates for this servlet.
 
Methods inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
doGet, getPredicate
 
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
 
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ExtTreeServlet

public ExtTreeServlet()
Method Detail

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 request
resp - The HTTP response
predicate - 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.