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

SOLVED

Sling Models adaptables

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 6
2 Replies

Avatar

Correct answer by
Level 6