T - the source of the template path (e.g. File, String,...)public abstract class PathTemplateLocator<T> extends AbstractTemplateLocator
| Modifier and Type | Field and Description |
|---|---|
static ConfigurationKey |
VIRTUAL_PATH_SEPARATOR_KEY
Virtual path separator
|
BUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
PathTemplateLocator(int priority,
java.lang.String rootPath) |
PathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
addSuffix(java.lang.String filename) |
protected abstract java.lang.String |
constructVirtualPath(T source) |
java.util.Set<ConfigurationKey> |
getConfigurationKeys() |
protected java.lang.String |
getDefaultFileEncoding() |
protected java.lang.String |
getRealPathSeparator() |
java.lang.String |
getRootPath() |
java.lang.String |
getSuffix() |
protected java.lang.String |
getVirtualPathSeparator() |
void |
init(Configuration configuration)
Initialize the component.
|
protected java.lang.String |
stripSuffix(java.lang.String filename) |
protected java.lang.String |
toRealPath(java.lang.String virtualPath) |
java.lang.String |
toString() |
getPrioritycheckNotInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllIdentifiers, locatepublic static final ConfigurationKey VIRTUAL_PATH_SEPARATOR_KEY
public PathTemplateLocator(int priority,
java.lang.String rootPath)
priority - rootPath - public PathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix)
priority - suffix - rootPath - public void init(Configuration configuration)
ConfigurationAwareConfigurationAware components e.g. (
LocaleSupport).
This method must not be called directly by the application.init in interface ConfigurationAwareinit in class AbstractConfigurationAwarepublic java.util.Set<ConfigurationKey> getConfigurationKeys()
getConfigurationKeys in interface ConfigurationAwaregetConfigurationKeys in class AbstractConfigurationAwarepublic java.lang.String getSuffix()
public java.lang.String getRootPath()
protected java.lang.String stripSuffix(java.lang.String filename)
protected java.lang.String addSuffix(java.lang.String filename)
protected java.lang.String getRealPathSeparator()
protected java.lang.String getVirtualPathSeparator()
protected java.lang.String getDefaultFileEncoding()
protected abstract java.lang.String constructVirtualPath(T source)
source - protected java.lang.String toRealPath(java.lang.String virtualPath)
virtualPath - public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014. All Rights Reserved.