org.apache.tapestry5.internal.services.assets
Class AssetPathConstructorImpl
java.lang.Object
org.apache.tapestry5.internal.services.assets.AssetPathConstructorImpl
- All Implemented Interfaces:
- AssetPathConstructor
public class AssetPathConstructorImpl
- extends Object
- implements AssetPathConstructor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetPathConstructorImpl
public AssetPathConstructorImpl(Request request,
BaseURLSource baseURLSource,
@Symbol(value="tapestry.application-version")
String applicationVersion,
@Symbol(value="tapestry.application-folder")
String applicationFolder,
@Symbol(value="tapestry.asset-url-fully-qualified")
boolean fullyQualified,
@Symbol(value="tapestry.asset-path-prefix")
String assetPathPrefix)
constructAssetPath
public String constructAssetPath(String virtualFolder,
String path)
- Description copied from interface:
AssetPathConstructor
- Constructs an asset URL path from the virtual folder and path (within the virtual folder).
- Specified by:
constructAssetPath
in interface AssetPathConstructor
- 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.