org.apache.tapestry5.internal.services
Interface AssetResourceLocator

All Known Implementing Classes:
AssetResourceLocatorImpl

public interface AssetResourceLocator

Responsible for converting a path (from AssetDispatcher into a Resource that can be streamed to the client.

Since:
5.1.0.2

Method Summary
 Resource findResourceForPath(String path)
          Analyzes the path and identifies the underying Asset Resource for that path.
 

Method Detail

findResourceForPath

Resource findResourceForPath(String path)
                             throws IOException
Analyzes the path and identifies the underying Asset Resource for that path. Handles context resources and checking for a digest.

Parameters:
path - to translate
Returns:
resource corresponding to path (may be for a non-existent resource), or null if path is invalid (i.e., incorrect digest)
Throws:
IOException


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.