Class AssetChecksumGeneratorImpl
-
- org.apache.tapestry5.internal.services.assets.AssetChecksumGeneratorImpl
-
- All Implemented Interfaces:
AssetChecksumGenerator
public class AssetChecksumGeneratorImpl extends implements AssetChecksumGenerator
-
-
Constructor Summary
Constructors Constructor Description AssetChecksumGeneratorImpl(StreamableResourceSource streamableResourceSource, ResourceChangeTracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description generateChecksum(Resource resource)
Given a raw resource, generates an MD5 checksum of the resource's contents.generateChecksum(StreamableResource resource)
Given a streamable resource, generates an MD5 checksum of the resource's contents.
-
-
-
Constructor Detail
-
AssetChecksumGeneratorImpl
public AssetChecksumGeneratorImpl(StreamableResourceSource streamableResourceSource, ResourceChangeTracker tracker)
-
-
Method Detail
-
generateChecksum
public generateChecksum(Resource resource) throws
Description copied from interface:AssetChecksumGenerator
Given a raw resource, generates an MD5 checksum of the resource's contents.- Specified by:
generateChecksum
in interfaceAssetChecksumGenerator
- Returns:
- checksum of contents
- Throws:
-
generateChecksum
public generateChecksum(StreamableResource resource) throws
Description copied from interface:AssetChecksumGenerator
Given a streamable resource, generates an MD5 checksum of the resource's contents.- Specified by:
generateChecksum
in interfaceAssetChecksumGenerator
- Returns:
- checksum of contents
- Throws:
-
-