Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

OSGi.annotations best practices for Servlet's

Avatar

Not applicable

Just getting up to speed with the new annotations(finally abandoning scr, already missing @SlingServet ), what is the preferred approach for writing meta-type annotations for Servlets.

Let's say I wanted to create servlet for following asset:

/content/dam/lifestyle-images/personal/savings/sav_isas_3_1.large.medium_quality.jpg

How does best practice implementation looks here?


Regards,

Peter

2 Replies

Avatar

Level 10

Read this: Apache Sling - Servlets and Scripts

Looks like you want to bind a servlet to content. In this case - you want to bind a servlet to a resource sling.servlet.resourceTypes.