public class AppCacheManifestTransformer extends ResourceTransformerSupport
ResourceTransformer HTML5 AppCache manifests.
This transformer:
ResourceResolver strategies
All files with an ".appcache" file extension (or the extension given to the constructor) will be transformed by this class. The hash is computed using the content of the appcache manifest so that changes in the manifest should invalidate the browser cache. This should also work with changes in referenced resources whose links are also versioned.
| Constructor and Description |
|---|
AppCacheManifestTransformer()
Create an AppCacheResourceTransformer that transforms files with extension ".appcache".
|
AppCacheManifestTransformer(java.lang.String fileExtension)
Create an AppCacheResourceTransformer that transforms files with the extension
given as a parameter.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Resource> |
transform(ServerWebExchange exchange,
Resource inputResource,
ResourceTransformerChain chain)
Transform the given resource.
|
getResourceUrlProvider, resolveUrlPath, setResourceUrlProvider, toAbsolutePathpublic AppCacheManifestTransformer()
public AppCacheManifestTransformer(java.lang.String fileExtension)
public reactor.core.publisher.Mono<Resource> transform(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain chain)
ResourceTransformerexchange - the current exchangeinputResource - the resource to transformchain - the chain of remaining transformers to delegate to