public class ClasspathAssetAliasManagerImpl extends Object implements ClasspathAssetAliasManager
Constructor and Description |
---|
ClasspathAssetAliasManagerImpl(AssetPathConstructor assetPathConstructor,
Map<String,String> configuration)
Configuration is a map of aliases (short names) to complete names.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMappings()
Returns the mappings used by the service: the keys are the folder aliases (i.e, "corelib")
and the values are the corresponding paths (i.e., "org/apache/tapestry5/corelib").
|
String |
toClientURL(String resourcePath)
Takes a resource path to a classpath resource and adds the asset path prefix to the path.
|
public ClasspathAssetAliasManagerImpl(AssetPathConstructor assetPathConstructor, Map<String,String> configuration)
public String toClientURL(String resourcePath)
ClasspathAssetAliasManager
toClientURL
in interface ClasspathAssetAliasManager
resourcePath
- resource path on the classpath (with no leading slash)public Map<String,String> getMappings()
ClasspathAssetAliasManager
ClasspathAssetRequestHandler
s can be created automatically
for each mapping.getMappings
in interface ClasspathAssetAliasManager
Copyright © 2003-2012 The Apache Software Foundation.