


Hi All,
Could you please please explain about the adaptables in sling models when to go for Resource and when to go for SlingHttpServletRequest what is the use cases
@ Model(Adaptables=Resource.class)
- what will exactly happen when we adapt Resource
@ Model(Adaptables=SlingHttpServletRequest.class)
what will exactly happen when we adaptSlingHttpServletRequest
Please explain by use case if you have
Thank you
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Please check usage of various annotations which supported only with either Resources or SlingHttpServletRequest
https://sling.apache.org/documentation/bundles/models.html#injector-specific-annotations-1
https://sling.apache.org/documentation/bundles/models.html#available-injectors