Page 1 of 1

A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resultin

Posted: Thu Jul 21, 2022 9:09 pm
by answerhappygod
A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.

What should the developer do to make the servlet access controlled using the default ACLs?
A Developer Cre 1
A Developer Cre 1 (3.56 KiB) Viewed 50 times
A. Use @SlingServletResourceTypes instead of @SlingServletPaths.
B. Modify @SlingServletPaths(value = {"/bin/sling/sample" }).
C. Add @SlingServletName(servletName = "AccessControlServlet") annotation.
D. Add @SlingServletPrefix(value = "/apps") annotation.