org.apache.tapestry5.services.assets
Interface AssetPathConstructor
- All Known Implementing Classes:
- AssetPathConstructorImpl
public interface AssetPathConstructor
Encapsulates the logic or creating the path portion of an asset URL, including
the application version.
- Since:
- 5.2.0
constructAssetPath
String constructAssetPath(String virtualFolder,
String path)
- Constructs an asset URL path from the virtual folder and path (within the virtual folder).
- Parameters:
virtualFolder
- corresponds to a AssetRequestHandler
contributed to the AssetDispatcher servicepath
- within the virtual folder (should not start with a slash)
- Returns:
- path portion of asset URL, including the context path, the /assets/ virtual folder, the application
version number,
the virtual folder, and the path extension
Copyright © 2003-2012 The Apache Software Foundation.