public class ResourceDigestGeneratorImpl extends Object implements ResourceDigestGenerator
Constructor and Description |
---|
ResourceDigestGeneratorImpl() |
Modifier and Type | Method and Description |
---|---|
String |
generateDigest(URL url)
Reads the content of a URL (presumably, for a resource on the classpath) and generates a digest of its content.
|
boolean |
requiresDigest(String path)
Examines the path (typically, the file name extension at the end of the path) to determine if a checksum is
required for the path.
|
public ResourceDigestGeneratorImpl()
public String generateDigest(URL url)
ResourceDigestGenerator
ResourceDigestGenerator.requiresDigest(String)
is
true.
As of Tapestry 5.4, simply returns null.generateDigest
in interface ResourceDigestGenerator
public boolean requiresDigest(String path)
ResourceDigestGenerator
Resource
style, without a leading slash.
As of Tapestry 5.4, simply returns false.requiresDigest
in interface ResourceDigestGenerator
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.