public class LocalizedWebContextResourceFinder extends java.lang.Object
WebContext
..Constructor and Description |
---|
LocalizedWebContextResourceFinder(WebContext context) |
Modifier and Type | Method and Description |
---|---|
org.apache.hivemind.util.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 LocalizedWebContextResourceFinder(WebContext context)
public org.apache.hivemind.util.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.