@Deprecated 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()
Deprecated.
Create an AppCacheResourceTransformer that transforms files with extension ".appcache".
|
AppCacheManifestTransformer(String fileExtension)
Deprecated.
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)
Deprecated.
Transform the given resource.
|
getResourceUrlProvider, resolveUrlPath, setResourceUrlProvider, toAbsolutePath
public AppCacheManifestTransformer()
public AppCacheManifestTransformer(String fileExtension)
public reactor.core.publisher.Mono<Resource> transform(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain chain)
ResourceTransformer
exchange
- the current exchangeinputResource
- the resource to transformchain
- the chain of remaining transformers to delegate to