public class TemplateParserImpl extends Object implements TemplateParser
ComponentTemplate
instances.
A new instance of SaxTemplateParser
is created for each document
parsed.Constructor and Description |
---|
TemplateParserImpl(Map<String,URL> configuration,
boolean defaultCompressWhitespace,
OperationTracker tracker) |
Modifier and Type | Method and Description |
---|---|
Map<String,URL> |
getDTDURLMappings()
Returns a mapping from URL string to a local equivalent URL, used to avoid attempting to pull
well-known DTDs down over the wire while parsing XML.
|
ComponentTemplate |
parseTemplate(Resource templateResource)
Parses the given resource into a component template.
|
public TemplateParserImpl(Map<String,URL> configuration, @Symbol(value="tapestry.compress-whitespace") boolean defaultCompressWhitespace, OperationTracker tracker)
public ComponentTemplate parseTemplate(Resource templateResource)
TemplateParser
parseTemplate
in interface TemplateParser
templateResource
- the pathpublic Map<String,URL> getDTDURLMappings()
TemplateParser
getDTDURLMappings
in interface TemplateParser
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.