Class TemplateParserImpl
java.lang.Object
org.apache.tapestry5.internal.services.TemplateParserImpl
- All Implemented Interfaces:
TemplateParser
Parses Tapestry XML template files into
ComponentTemplate
instances.
A new instance of SaxTemplateParser
is created for each document
parsed.- Since:
- 5.1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateParserImpl
(Map<String, URL> configuration, boolean defaultCompressWhitespace, OperationTracker tracker) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.parseTemplate
(Resource templateResource) Parses the given resource into a component template.
-
Constructor Details
-
TemplateParserImpl
public TemplateParserImpl(Map<String, URL> configuration, @Symbol("tapestry.compress-whitespace") boolean defaultCompressWhitespace, OperationTracker tracker)
-
-
Method Details
-
parseTemplate
Description copied from interface:TemplateParser
Parses the given resource into a component template.- Specified by:
parseTemplate
in interfaceTemplateParser
- Parameters:
templateResource
- the path- Returns:
- the parsed template contents
-
getDTDURLMappings
Description copied from interface:TemplateParser
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.- Specified by:
getDTDURLMappings
in interfaceTemplateParser
-