Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services
Interface TemplateParser

All Known Implementing Classes:
  TemplateParserImpl

    @UsesMappedConfiguration(value=java.net.URL.class)
    public interface TemplateParser

Parses a resource into a `ComponentTemplate`. The service's configuration is used to map common document types to internal copies of the corresponding DTD.

See Also:
  `PageLoader`

Method Summary
`java.util.Map<java.lang.String,java.net.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.

Method Detail

### parseTemplate

    ComponentTemplate parseTemplate(Resource templateResource)

  Parses the given resource into a component template.

  Parameters:
    `templateResource` - the path
  Returns:
    the parsed template contents
  Throws:
    `java.lang.RuntimeException` - if the resource does not exist, or if there is any kind of parse error

### getDTDURLMappings

    java.util.Map<java.lang.String,java.net.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.

  Since:
    5.3

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.