Wrap or Decorate ResourcesPage added by Mike MuellerService to wrap resourcesIntroductionThe Sling API provides an easy way to wrap or decorate a resource before returning. Use cases for this could for example be
To add a resource decorator just register one or more services which implement the interface ResourceDecorator
interface ResourceDecorator {
Resource decorate(Resource)
Resource decorate(Resource, HttpServletRequest)
}
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Sling Website > Wrap or Decorate Resources confluence
