类 CssLinkResourceTransformer
- java.lang.Object
- org.springframework.web.reactive.resource.ResourceTransformerSupport
- org.springframework.web.reactive.resource.CssLinkResourceTransformer
 
 
- 所有已实现的接口:
- ResourceTransformer
 - public class CssLinkResourceTransformer extends ResourceTransformerSupport A- ResourceTransformerimplementation that modifies links in a CSS file to match the public URL paths that should be exposed to clients (e.g. with an MD5 content-based hash inserted in the URL).- The implementation looks for links in CSS - @importstatements and also inside CSS- url()functions. All links are then passed through the- ResourceResolverChainand resolved relative to the location of the containing CSS file. If successfully resolved, the link is modified, otherwise the original link is preserved.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
 
- 嵌套类概要- 嵌套类 - 修饰符和类型 - 类 - 说明 - protected static class- CssLinkResourceTransformer.AbstractLinkParserAbstract base class for- CssLinkResourceTransformer.LinkParserimplementations.- protected static interface- CssLinkResourceTransformer.LinkParserExtract content chunks that represent links.
 - 构造器概要- 构造器 - 构造器 - 说明 - CssLinkResourceTransformer()
 - 方法概要- 所有方法 实例方法 具体方法 - 修饰符和类型 - 方法 - 说明 - reactor.core.publisher.Mono<Resource>- transform(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain transformerChain)Transform the given resource.- 从类继承的方法 org.springframework.web.reactive.resource.ResourceTransformerSupport- getResourceUrlProvider, resolveUrlPath, setResourceUrlProvider, toAbsolutePath
 
 
- 构造器详细资料- CssLinkResourceTransformer- public CssLinkResourceTransformer() 
 
 - 方法详细资料- transform- public reactor.core.publisher.Mono<Resource> transform(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain transformerChain) 从接口复制的说明:- ResourceTransformerTransform the given resource.- 参数:
- exchange- the current exchange
- inputResource- the resource to transform
- transformerChain- the chain of remaining transformers to delegate to
- 返回:
- the transformed resource (never empty)