|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceDecorator
Optional service to decorate Resource
s returned by
the ResourceResolver
.
Typical use cases for a decorator are
- overwrite resource type/resource super type (for example
based on the resource path)
- add metadata
Method Summary | |
---|---|
Resource |
decorate(Resource resource)
Decorate a resource. |
Resource |
decorate(Resource resource,
javax.servlet.http.HttpServletRequest request)
Decorate a resource. |
Method Detail |
---|
Resource decorate(Resource resource)
null
is considered the same as
returning the original resource.
resource
- The resource to decorate
Resource decorate(Resource resource, javax.servlet.http.HttpServletRequest request)
null
is considered the same as
returning the original resource.
resource
- The resource to decoraterequest
- The current request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |