Top Description Methods
org.springframework.web.reactive.resource

public Interface ResourceTransformer

Known Direct Implementers
org.springframework.web.reactive.resource.ResourceTransformerSupport, org.springframework.web.reactive.resource.CachingResourceTransformer
Annotations
@FunctionalInterface
Imports
reactor.core.publisher.Mono, org.springframework.core.io.Resource, org.springframework.web.server.ServerWebExchange

An abstraction for transforming the content of a resource.
Author
Rossen Stoyanchev
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public Mono<Resource>

Returns:

the transformed resource (never empty)
transform
(ServerWebExchange
the current exchange
exchange
,
Resource
the resource to transform
resource
,
ResourceTransformerChain
the chain of remaining transformers to delegate to
transformerChain
)

Transform the given resource.

Method Detail

transformback to summary
public Mono<Resource> transform(ServerWebExchange exchange, Resource resource, ResourceTransformerChain transformerChain)

Transform the given resource.

Parameters
exchange:ServerWebExchange

the current exchange

resource:Resource

the resource to transform

transformerChain:ResourceTransformerChain

the chain of remaining transformers to delegate to

Returns:Mono<Resource>

the transformed resource (never empty)