public class ResourceDigestGeneratorImpl extends Object implements ResourceDigestGenerator
ResourceDigestGenerator
that generates MD5 digests.Constructor and Description |
---|
ResourceDigestGeneratorImpl(Collection<String> configuration) |
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)
Current implementation is based on the path extension, and a configured list of extensions.
|
public ResourceDigestGeneratorImpl(Collection<String> configuration)
public String generateDigest(URL url)
ResourceDigestGenerator
ResourceDigestGenerator.requiresDigest(String)
is
true.generateDigest
in interface ResourceDigestGenerator
public boolean requiresDigest(String path)
requiresDigest
in interface ResourceDigestGenerator
Copyright © 2003-2012 The Apache Software Foundation.