public class ChecksumPath extends Object
AssetRequestHandler
implementations
where the first folder in the extra path is actually a computed checksum of the resource's content.Modifier and Type | Field and Description |
---|---|
String |
checksum |
String |
resourcePath |
Constructor and Description |
---|
ChecksumPath(ResourceStreamer streamer,
String baseFolder,
String extraPath) |
Modifier and Type | Method and Description |
---|---|
boolean |
stream(Resource resource)
If the resource exists and the checksum is correct, stream it to the client and return true.
|
public final String resourcePath
public ChecksumPath(ResourceStreamer streamer, String baseFolder, String extraPath)
public boolean stream(Resource resource) throws IOException
resource
- to streamIOException
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.