| java.lang.Object freemarker.cache.URLTemplateLoader
All known Subclasses: freemarker.cache.ClassTemplateLoader,
URLTemplateLoader | abstract public class URLTemplateLoader implements TemplateLoader(Code) | | This is an abstract template loader that can load templates whose
location can be described by an URL. Subclasses only need to override
the
URLTemplateLoader.getURL(String) method. Both
ClassTemplateLoader and
WebappTemplateLoader are (quite trivial) subclasses of this class.
version: $Id: URLTemplateLoader.java,v 1.14 2003/01/29 08:01:17 szegedia Exp $ author: Attila Szegedi |
canonicalizePrefix | protected static String canonicalizePrefix(String prefix)(Code) | | Can be used by subclasses to canonicalize URL path prefixes.
Parameters: prefix - the path prefix to canonicalize the canonicalized prefix. All backslashes are replaced withforward slashes, and a trailing slash is appended if the originalprefix wasn't empty and didn't already end with a slash. |
getLastModified | public long getLastModified(Object templateSource)(Code) | | |
getURL | abstract protected URL getURL(String name)(Code) | | Given a template name (plus potential locale decorations) retrieves
an URL that points the template source.
Parameters: name - the name of the sought template, including the localedecorations. an URL that points to the template source, or null if it candetermine that the template source does not exist. |
|
|