com.day.cq.extwidget.servlets
Class ExtMediaListServlet

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.ExtMediaListServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ExtMediaListServlet
extends AbstractPredicateServlet

Servlet that writes a JSON representations of the media items within a folder that can be used with the CQ.Ext.DataView of the CQ.MediaBrowseDialog.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM
 
Constructor Summary
ExtMediaListServlet()
           
 
Method Summary
protected  void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response, org.apache.commons.collections.Predicate predicate)
          Handles the HTTP GET method
 
Methods inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
doGet, 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

ExtMediaListServlet

public ExtMediaListServlet()
Method Detail

doGet

protected void doGet(SlingHttpServletRequest request,
                     SlingHttpServletResponse response,
                     org.apache.commons.collections.Predicate predicate)
              throws ServletException,
                     IOException
Handles the HTTP GET method

Overrides:
doGet in class AbstractPredicateServlet
Parameters:
request - The HTTP request
response - The HTTP response
predicate - the predicate retrieved from the request
Throws:
ServletException - if a servlet error occurs
IOException - if an I/O error occurs


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