@ConsumerType
public interface ResourceDecorator
Resources 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@CheckForNull Resource decorate(@Nonnull Resource resource)
null is considered the same as
returning the original resource.resource - The resource to decorate@Deprecated @CheckForNull Resource decorate(@Nonnull Resource resource, @Nonnull javax.servlet.http.HttpServletRequest request)
null is considered the same as
returning the original resource.resource - The resource to decoraterequest - The current request.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.