public interface ResourceTransformerChain
ResourceTransformer
s 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. |
reactor.core.publisher.Mono<Resource> |
transform(ServerWebExchange exchange,
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.reactor.core.publisher.Mono<Resource> transform(ServerWebExchange exchange, Resource resource)
exchange
- the current exchangeresource
- the candidate resource to transform