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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 49 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply