public class LocalizedContextResourceFinder extends java.lang.Object
Originally part of Tapestry 3.0.
ServletContext| Constructor and Description |
|---|
LocalizedContextResourceFinder(javax.servlet.ServletContext context) |
| Modifier and Type | Method and Description |
|---|---|
LocalizedResource |
resolve(java.lang.String contextPath,
java.util.Locale locale)
Resolves the resource, returning a path representing the closest match (with respect to the
provided locale).
|
public LocalizedContextResourceFinder(javax.servlet.ServletContext context)
public LocalizedResource resolve(java.lang.String contextPath, java.util.Locale locale)
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.