org.chenillekit.tapestry.core.services
Interface URIAssetAliasManager

All Known Implementing Classes:
URIAssetAliasManagerImpl

public interface URIAssetAliasManager

Version:
$Id: URIAssetAliasManager.java 594 2009-12-05 15:17:26Z mlusetti $

Method Summary
 String toClientURL(String resourcePath)
          Takes a resource path to a URI resource and adds the uri path prefix to the path.
 String toResourcePath(String clientURL)
          Reverses toClientURL(String), stripping off the uri prefix, and re-expanding any aliased folders back to complete folders.
 

Method Detail

toClientURL

String toClientURL(String resourcePath)
Takes a resource path to a URI resource and adds the uri path prefix to the path. May also convert part of the path to an alias (based on the manager's configuration).

Parameters:
resourcePath - resource path (with no leading slash)
Returns:
URL ready to send to the client

toResourcePath

String toResourcePath(String clientURL)
Reverses toClientURL(String), stripping off the uri prefix, and re-expanding any aliased folders back to complete folders.



Copyright © 2008-2010 ChenilleKit. All Rights Reserved.