@Service(value=javax.servlet.Servlet.class) @Property(name="sling.servlet.extensions",value="json") @Property(name="sling.servlet.resourceTypes",value="fd/fm/reviewServlet") @Property(name="sling.servlet.methods",value={"GET","POST"}) public class ReviewManagerServlet extends SlingAllMethodsServlet
ReviewManagerServlet
is the servlet handling requests for
management of reviews.Constructor and Description |
---|
ReviewManagerServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP GET request. |
void |
doPost(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP POST request. |
getServletInfo, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
public void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)
SlingSafeMethodsServlet
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.
request
- The HTTP requestresponse
- The HTTP responsepublic void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response)
SlingAllMethodsServlet
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
method to
handle an HTTP POST 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 POST method support.
request
- The HTTP requestresponse
- The HTTP responseCopyright © 2010 - 2020 Adobe. All Rights Reserved