@Deprecated public abstract class AbstractNonValidatingDOMTemplateParser extends Object implements ITemplateParser
Parses XML documents, using a standard non-validating DOM parser.
This implementation first builds a DOM tree using the standard DOM API, and then translates this tree into a Thymeleaf-specific one. It also populates tree nodes with basic location information (document name only).
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNonValidatingDOMTemplateParser(int poolSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected ResourcePool<DocumentBuilder> |
createDocumentBuilders(int poolSize,
boolean validating)
Deprecated.
|
protected ResourcePool<DocumentBuilder> |
getNonValidatingPool()
Deprecated.
|
protected ResourcePool<DocumentBuilder> |
getPool()
Deprecated.
|
protected TemplatePreprocessingReader |
getTemplatePreprocessingReader(Reader reader)
Deprecated.
|
List<Node> |
parseFragment(Configuration configuration,
String fragment)
Deprecated.
Parses the document fragment contained in the given String object.
|
Document |
parseTemplate(Configuration configuration,
String documentName,
Reader reader)
Deprecated.
Parses the document contained in the given Reader object.
|
protected Document |
parseTemplateUsingPool(Configuration configuration,
String documentName,
Reader reader,
ResourcePool<DocumentBuilder> poolToBeUsed)
Deprecated.
|
protected boolean |
shouldAddThymeleafRootToParser()
Deprecated.
|
protected abstract List<Node> |
unwrapFragment(Document document)
Deprecated.
|
protected abstract String |
wrapFragment(String fragment)
Deprecated.
|
protected AbstractNonValidatingDOMTemplateParser(int poolSize)
protected ResourcePool<DocumentBuilder> getPool()
protected final ResourcePool<DocumentBuilder> getNonValidatingPool()
protected final ResourcePool<DocumentBuilder> createDocumentBuilders(int poolSize, boolean validating)
public final Document parseTemplate(Configuration configuration, String documentName, Reader reader)
ITemplateParserParses the document contained in the given Reader object.
parseTemplate in interface ITemplateParserconfiguration - the Configuration objectdocumentName - the document name (optional).reader - the Reader on the document to be parsed (required).protected final Document parseTemplateUsingPool(Configuration configuration, String documentName, Reader reader, ResourcePool<DocumentBuilder> poolToBeUsed)
public final List<Node> parseFragment(Configuration configuration, String fragment)
ITemplateParserParses the document fragment contained in the given String object.
parseFragment in interface ITemplateParserconfiguration - the Configuration objectfragment - the String containing the fragmentprotected boolean shouldAddThymeleafRootToParser()
protected TemplatePreprocessingReader getTemplatePreprocessingReader(Reader reader)
reader - readerCopyright © 2014 The THYMELEAF team. All rights reserved.