Class ChecksumPath
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.assets.ChecksumPath
 
- 
 public class ChecksumPath extends Object Utility used byAssetRequestHandlerimplementations where the first folder in the extra path is actually a computed checksum of the resource's content.- Since:
- 5.4
 
- 
- 
Field SummaryFields Modifier and Type Field Description StringchecksumStringresourcePath
 - 
Constructor SummaryConstructors Constructor Description ChecksumPath(ResourceStreamer streamer, String baseFolder, String extraPath)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanstream(Resource resource)If the resource exists and the checksum is correct, stream it to the client and return true.
 
- 
- 
- 
Field Detail- 
resourcePathpublic final String resourcePath 
 
- 
 - 
Constructor Detail- 
ChecksumPathpublic ChecksumPath(ResourceStreamer streamer, String baseFolder, String extraPath) 
 
- 
 - 
Method Detail- 
streampublic boolean stream(Resource resource) throws IOException If the resource exists and the checksum is correct, stream it to the client and return true. Otherwise, return false.- Parameters:
- resource- to stream
- Returns:
- true if streamed, false otherwise
- Throws:
- IOException
 
 
- 
 
-