|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@UsesConfiguration(value=java.lang.String.class) public interface ResourceDigestGenerator
Responsible for determining which classpath resources require checksums, and for generating checksums for such resources.
The service's configuration identifies which file extensions will be secured using an checksum. The default list is "class" and "tml".
ClasspathResource
,
ClasspathAssetFactory
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean requiresDigest(String path)
Resource
style, without a leading slash.
String generateDigest(URL url)
requiresDigest(String)
is
true.
url
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |