Sling Servlets
Hi All,
Can someone please tell me what is the difference between SlingAllMethodsServlet and SlingSafeMethodServlet ?
We use them when writing servlets but i am not sure which should be given preference.
Thanks
Jai
Hi All,
Can someone please tell me what is the difference between SlingAllMethodsServlet and SlingSafeMethodServlet ?
We use them when writing servlets but i am not sure which should be given preference.
Thanks
Jai
Hi Jai,
Basically, SlingAllMethodsServlet is another layer of interface which extends SlingSafeMethodServlet which has doPost, doDelete and doPut operations for the request, response.
Refer [1] and [2] for more details on each interface
[1] https://sling.apache.org/apidocs/sling5/org/apache/sling/api/servlets/SlingSafeMethodsServlet.html
[2] https://sling.apache.org/apidocs/sling5/org/apache/sling/api/servlets/SlingAllMethodsServlet.html
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.