@FunctionalInterface public interface ResourceTransformer
Modifier and Type | Method and Description |
---|---|
Resource |
transform(HttpServletRequest request,
Resource resource,
ResourceTransformerChain transformerChain)
Transform the given resource.
|
Resource transform(HttpServletRequest request, Resource resource, ResourceTransformerChain transformerChain) throws IOException
request
- the current requestresource
- the resource to transformtransformerChain
- the chain of remaining transformers to delegate tonull
)IOException
- if the transformation fails