org.apache.tapestry5.internal.services
Class ClasspathAssetAliasManagerImpl
java.lang.Object
org.apache.tapestry5.internal.services.ClasspathAssetAliasManagerImpl
- All Implemented Interfaces:
- ClasspathAssetAliasManager
public class ClasspathAssetAliasManagerImpl
- extends Object
- implements ClasspathAssetAliasManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathAssetAliasManagerImpl
public ClasspathAssetAliasManagerImpl(Request request,
Map<String,String> configuration)
- Configuration is a map of aliases (short names) to complete names. Keys and values should end with a slash, but
one will be provided as necessary, so don't both.
toClientURL
public String toClientURL(String resourcePath)
- Description copied from interface:
ClasspathAssetAliasManager
- Takes a resource path to a classpath resource and adds the asset path prefix to the path. May also convert part
of the path to an alias (based on the manager's configuration).
- Specified by:
toClientURL in interface ClasspathAssetAliasManager
- Parameters:
resourcePath - resource path on the classpath (with no leading slash)
- Returns:
- URL ready to send to the client
toResourcePath
public String toResourcePath(String clientURL)
- Description copied from interface:
ClasspathAssetAliasManager
- Reverses
ClasspathAssetAliasManager.toClientURL(String), stripping off the asset prefix, and re-expanding any aliased folders back
to complete folders.
- Specified by:
toResourcePath in interface ClasspathAssetAliasManager
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.