简体   繁体   中英

What is a Resource Resolver API interface in AEM? What is it's significance

What exactly are resources and resource resolvers. Can you please elaborate the same and essential terms relating to it?

Wanted to know how resource resolver works and if possible it's usage with an example.

A high level view can be found on https://sling.apache.org/documentation/the-sling-engine/resources.html . Sling is essentially the core of AEM.

The easiest way to use a ResourceResolver in a servlet is getting it from SlingHttpServletRequest.html#getResourceResolver . The resolver needs to have the appropriate repository rights to access the resource, but every node under /content should be accessible.

You could than adapt the node to the appropriate component and get a JSON representation by Jackson mapper.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM