public interface ResourceTransformerChain
ResourceTransformers
where each resolver
is given a reference to the chain allowing it to delegate when necessary.Modifier and Type | Method and Description |
---|---|
ResourceResolverChain |
getResolverChain()
Return the
ResourceResolverChain that was used to resolve the
Resource being transformed. |
Resource |
transform(HttpServletRequest request,
Resource resource)
Transform the given resource.
|
ResourceResolverChain getResolverChain()
ResourceResolverChain
that was used to resolve the
Resource
being transformed. This may be needed for resolving
related resources, e.g. links to other resources.Resource transform(HttpServletRequest request, Resource resource) throws java.io.IOException
request
- the current requestresource
- the candidate resource to transformnull
java.io.IOException
- if transformation fails