com.day.cq.mcm.core.servlets
Class TeasersServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.day.cq.mcm.core.servlets.TeasersServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
@Service
@Properties(value={@Property(name="sling.servlet.extensions",value="json"),@Property(name="sling.servlet.paths",value="/libs/mcm/teasers"),@Property(name="sling.servlet.methods",value="GET")})
public class TeasersServlet- extends SlingAllMethodsServlet
This servlet provides all available touchpoints including groups.
Maps to static path because 1. search seems not to work when using sth else than
//*, 2. because to get touchpoints and groups one has to start
searching from the highest common root, which is jcr_root.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TeasersServlet
public TeasersServlet()
doGet
protected void doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response)
throws ServletException,
IOException
- Description copied from class:
SlingSafeMethodsServlet
- 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.
- Overrides:
doGet in class SlingSafeMethodsServlet
- Parameters:
request - The HTTP requestresponse - 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.