com.day.cq.tagging.servlets
Class TagListServlet

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.commons.servlets.AbstractListServlet
                      extended by com.day.cq.tagging.servlets.TagListServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class TagListServlet
extends AbstractListServlet

Provides a JSON representation of child tags (for a cq:Tag resource or the tag base path), a list of tag suggestions by a partial title or name, or of all tags referenced by a cq:Taggable resource.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.day.cq.commons.servlets.AbstractListServlet
AbstractListServlet.ListItem, AbstractListServlet.ListItemComparator
 
Field Summary
 
Fields inherited from class com.day.cq.commons.servlets.AbstractListServlet
admin, CONTENT_TYPE, DEFAULT_SORT_DIR, DEFAULT_SORT_KEY, DEFAULT_TIDY, ENCODING, listInfoProvider, PAGE_INDEX, PAGE_LIMIT, PAGE_START, PATH, PROP, repository, SORT_ASCENDING, SORT_DESCENDING, SORT_DIR, SORT_KEY, TIDY
 
Fields inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM
 
Constructor Summary
TagListServlet()
           
 
Method Summary
protected  void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)
          Called by the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to handle an HTTP GET request.
 
Methods inherited from class com.day.cq.commons.servlets.AbstractListServlet
activate, applyPaging, applySorting, bindListInfoProvider, deactivate, doGet, getItems, getPagingIndex, processItems, registerProvider, unbindListInfoProvider, write, writeCustomProperties, writeKey, writeOptionalDateKey, writeOptionalKey, writePagingIndex
 
Methods inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
getPredicate, selectorPredicateStart
 
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
 

Constructor Detail

TagListServlet

public TagListServlet()
Method Detail

doGet

protected void doGet(SlingHttpServletRequest request,
                     SlingHttpServletResponse response)
              throws ServletException,
                     IOException
Description copied from class: AbstractPredicateServlet
Called by the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to handle an HTTP GET request.

This default implementation reports back to the client that the method is not supported.

Implementations of this class should overwrite this method with their implementation for the HTTP GET method support. Calls AbstractPredicateServlet.doGet(SlingHttpServletRequest, SlingHttpServletResponse, Predicate).

Overrides:
doGet in class AbstractPredicateServlet
Parameters:
request - The HTTP request
response - The HTTP response
Throws:
ServletException - Not thrown by this implementation.
IOException - If the error status cannot be reported back to the client.


Copyright © 2011-2012 Adobe Systems Incorporated. All Rights Reserved.