|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.resource.locator.AbstractResourceStreamLocator
Base class for implementing IResourceLocators.
Contains the logic to locate a resource based on a path, a style (see
Session), a locale and an extension string. The full filename
will be built like:
<path>_<style>_<locale>.<extension>.
Resource matches will be attempted in the following order:
Locales may contain a language, a country and a region or variant. Combinations of these components will be attempted in the following order:
| Constructor Summary | |
protected |
AbstractResourceStreamLocator()
Constructor |
| Method Summary | |
protected abstract IResourceStream |
locate(java.lang.ClassLoader classLoader,
java.lang.String path)
Subclass implementation locates the resource at the given path. |
IResourceStream |
locate(java.lang.ClassLoader classLoader,
java.lang.String path,
java.lang.String style,
java.util.Locale locale,
java.lang.String extension)
Locate a resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractResourceStreamLocator()
| Method Detail |
public IResourceStream locate(java.lang.ClassLoader classLoader,
java.lang.String path,
java.lang.String style,
java.util.Locale locale,
java.lang.String extension)
locate in interface IResourceStreamLocatorclassLoader - class loaderpath - The path of the resource without extensionstyle - A theme or style (see Session)locale - The Locale to applyextension - the filname's extensions
protected abstract IResourceStream locate(java.lang.ClassLoader classLoader,
java.lang.String path)
classLoader - class loaderpath - The complete path of the resource to locate. Separators must
be forward slashes.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||