public class AppCacheManifestTransfomer extends Object implements ResourceTransformer
ResourceTransformer
implementation that helps handling resources
within HTML5 AppCache manifests for HTML5 offline applications.
This transformer:
ResourceResolver
strategies
Constructor and Description |
---|
AppCacheManifestTransfomer()
Create an AppCacheResourceTransformer that transforms files with extension ".manifest"
|
AppCacheManifestTransfomer(String fileExtension)
Create an AppCacheResourceTransformer that transforms files with the extension
given as a parameter.
|
Modifier and Type | Method and Description |
---|---|
Resource |
transform(HttpServletRequest request,
Resource resource,
ResourceTransformerChain transformerChain)
Transform the given resource.
|
public AppCacheManifestTransfomer()
public AppCacheManifestTransfomer(String fileExtension)
public Resource transform(HttpServletRequest request, Resource resource, ResourceTransformerChain transformerChain) throws IOException
ResourceTransformer
transform
in interface ResourceTransformer
request
- the current requestresource
- the resource to transformtransformerChain
- the chain of remaining transformers to delegate tonull
IOException
- if the transformation fails