org.apache.tapestry.web
Class LocalizedWebContextResourceFinder
java.lang.Object
  
org.apache.tapestry.web.LocalizedWebContextResourceFinder
public class LocalizedWebContextResourceFinder
- extends Object
 
Finds localized resources within a WebContext..
- Since:
 
  - 4.0
 
- Author:
 
  - Howard Lewis Ship
 
 
| 
Method Summary | 
 org.apache.hivemind.util.LocalizedResource | 
resolve(String contextPath,
               Locale locale)
 
          Resolves the resource, returning a path representing the closest match
 (with respect to the provided locale). | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LocalizedWebContextResourceFinder
public LocalizedWebContextResourceFinder(WebContext context)
resolve
public org.apache.hivemind.util.LocalizedResource resolve(String contextPath,
                                                          Locale locale)
- Resolves the resource, returning a path representing the closest match
 (with respect to the provided locale). Returns null if no match.
 
 The provided path is split into a base path and a suffix (at the last
 period character). The locale will provide different suffixes to the base
 path and the first match is returned.
 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.