public abstract class AbstractAssetFactory extends Object implements AssetFactory
Constructor and Description |
---|
AbstractAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer,
ResourceChangeTracker resourceChangeTracker,
StreamableResourceSource streamableResourceSource,
AssetPathConstructor assetPathConstructor,
Resource rootResource) |
Modifier and Type | Method and Description |
---|---|
protected Asset |
createAsset(Resource resource,
String folder,
String resourcePath) |
Resource |
getRootResource()
Returns the root
ContextResource . |
protected boolean |
isCompressable(StreamableResource resource) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAsset
public AbstractAssetFactory(ResponseCompressionAnalyzer compressionAnalyzer, ResourceChangeTracker resourceChangeTracker, StreamableResourceSource streamableResourceSource, AssetPathConstructor assetPathConstructor, Resource rootResource)
protected boolean isCompressable(StreamableResource resource)
public Resource getRootResource()
ContextResource
.getRootResource
in interface AssetFactory
protected Asset createAsset(Resource resource, String folder, String resourcePath)
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.