|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.peaseplate.resolver.AbstractFileBasedResolver
public abstract class AbstractFileBasedResolver
An abstract base implementation of a Resolver
.
Provides methods for file based template resolvers.
Constructor Summary | |
---|---|
AbstractFileBasedResolver()
|
Method Summary | |
---|---|
protected java.lang.String |
convertBackslashes(java.lang.String path)
Replaces any backslashes to slashes. |
protected java.lang.String |
formatLocale(java.util.Locale locale)
Formats the locale according to the needs of the includeLocale method |
protected java.lang.String |
includeLocale(java.lang.String path,
java.util.Locale locale)
Adds the locale to the path. |
protected java.lang.String |
replaceExtension(java.lang.String path)
Replaces the extension with ".properties" for the message properties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.peaseplate.resolver.Resolver |
---|
resolveMessages, resolveTemplate |
Constructor Detail |
---|
public AbstractFileBasedResolver()
Method Detail |
---|
protected java.lang.String convertBackslashes(java.lang.String path)
path
- the path
protected java.lang.String replaceExtension(java.lang.String path)
path
- the path
protected java.lang.String includeLocale(java.lang.String path, java.util.Locale locale)
path
- the pathlocale
- the locale
protected java.lang.String formatLocale(java.util.Locale locale)
locale
- the locale, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |