org.apache.tapestry5.internal.services
Interface AssetResourceLocator
- All Known Implementing Classes:
- AssetResourceLocatorImpl
public interface AssetResourceLocator
Responsible for converting a path into a Resource
that can be
streamed to the client. The path is on the classpath, but may have been changed to include a checksum (in
certain cases).
- Since:
- 5.1.0.2
findClasspathResourceForPath
Resource findClasspathResourceForPath(String path)
throws IOException
- For a complete classpath path, returns the Resource for the path. This include checking for a
digest for protected files.
- Returns:
- resource corresponding to path (may be for a non-existent resource), or null if path is invalid (i.e.,
incorrect digest)
- Throws:
IOException
Copyright © 2003-2012 The Apache Software Foundation.