org.apache.tapestry5.internal.services.assets
Class AssetPathConstructorImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.services.assets.AssetPathConstructorImpl
All Implemented Interfaces:
AssetPathConstructor

public class AssetPathConstructorImpl
extends Object
implements AssetPathConstructor


Constructor Summary
AssetPathConstructorImpl(Request request, BaseURLSource baseURLSource, String applicationVersion, String applicationFolder, boolean fullyQualified, String assetPathPrefix)
           
 
Method Summary
 String constructAssetPath(String virtualFolder, String path)
          Constructs an asset URL path from the virtual folder and path (within the virtual folder).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 service
path - 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.