org.apache.tapestry.util
Class LocalizedContextResourceFinder
java.lang.Object
|
+--org.apache.tapestry.util.LocalizedContextResourceFinder
- public class LocalizedContextResourceFinder
- extends Object
Finds localized resources within the web application context.
- Since:
- 3.0
- Version:
- $Id: LocalizedContextResourceFinder.java,v 1.3 2003/06/29 18:05:41 mindbridge Exp $
- Author:
- Howard Lewis Ship
- See Also:
ServletContext
Method Summary |
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 |
LocalizedContextResourceFinder
public LocalizedContextResourceFinder(ServletContext context)
resolve
public 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.