public abstract class FilePathTemplateLocator extends PathTemplateLocator<java.io.File>
VIRTUAL_PATH_SEPARATOR_KEYBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
FilePathTemplateLocator(int priority,
java.lang.String rootPath) |
FilePathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
constructVirtualPath(java.io.File source) |
java.util.Set<java.lang.String> |
getAllIdentifiers() |
protected abstract java.io.File |
getRootDir() |
protected void |
checkRootDir() |
protected boolean |
isDirectoryUsable(java.io.File dir) |
protected boolean |
isFileUsable(java.io.File file) |
protected java.util.List<java.io.File> |
listFiles(java.io.File dir) |
java.io.Reader |
locate(java.lang.String filePath) |
protected abstract java.io.Reader |
locateRealPath(java.lang.String realPath) |
addSuffix, getConfigurationKeys, getDefaultFileEncoding, getRealPathSeparator, getRootPath, getSuffix, getVirtualPathSeparator, init, stripSuffix, toRealPath, toStringgetPrioritypublic FilePathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix)
priority - rootPath - suffix - public FilePathTemplateLocator(int priority,
java.lang.String rootPath)
priority - rootPath - public java.io.Reader locate(java.lang.String filePath)
filePath - The template identifiernull if no available template with the given name
existspublic java.util.Set<java.lang.String> getAllIdentifiers()
EngineConfigurationKey.PRECOMPILE_ALL_TEMPLATESprotected java.lang.String constructVirtualPath(java.io.File source)
constructVirtualPath in class PathTemplateLocator<java.io.File>protected abstract java.io.File getRootDir()
PathTemplateLocator.getRootPath()protected abstract java.io.Reader locateRealPath(java.lang.String realPath)
realPath - protected java.util.List<java.io.File> listFiles(java.io.File dir)
dir - protected boolean isDirectoryUsable(java.io.File dir)
protected boolean isFileUsable(java.io.File file)
protected void checkRootDir()
Copyright © 2013. All Rights Reserved.