QuestionQ41

No official topic/domain breakdown was publicly listed on the Adobe certification page or prep guide page I could access for AD0-E137

A developer must create an Adobe Experience Manager servlet, AbcServlet, that listens for HTTP requests and can handle the HTTP POST method. The servlet must be registered through Declarative Services (OSGi) and bound to the specific resource type /abc/resourcetype, enabling it to serve requests for a particular component.

What is the correct way to register the servlet?

Explanation

SlingAllMethodsServlet is the Sling base servlet intended for data-modifying HTTP methods, including POST, and it dispatches a POST request to doPost. SlingSafeMethodsServlet is intended for read-only methods and does not itself support POST. @SlingServletResourceTypes registers the servlet resolver properties for the specified resource type and request method.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!