|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.util.resource.locator.AbstractResourceStreamLocator
public abstract class AbstractResourceStreamLocator
Base class for implementing IResourceStreamLocators.
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.Class clazz,
java.lang.String path)
Subclass implementation locates the resource at the given path. |
IResourceStream |
locate(java.lang.Class clazz,
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.Class clazz,
java.lang.String path,
java.lang.String style,
java.util.Locale locale,
java.lang.String extension)
locate in interface IResourceStreamLocatorclazz - The class requesting the resourcepath - 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.Class clazz,
java.lang.String path)
clazz - The class requesting the resourcepath - 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 | |||||||||