@UsesMappedConfiguration(value=java.net.URL.class) public interface TemplateParser
ComponentTemplate
. The service's configuration
is used to map common document types to internal copies of the corresponding DTD.PageLoader
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.
|
ComponentTemplate parseTemplate(Resource templateResource)
templateResource
- the pathRuntimeException
- if the resource does not exist, or if there is any kind of parse errorMap<String,URL> getDTDURLMappings()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.