protected abstract static class SimpleLagartoServletFilter.LagartoParsingProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected FastCharArrayWriter |
fastCharArrayWriter |
protected LagartoParser |
lagartoParser |
protected TagWriter |
tagWriter |
Modifier | Constructor and Description |
---|---|
protected |
LagartoParsingProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
init(char[] content)
Initialize processor by creating new Lagarto and root TagWriter.
|
char[] |
invokeLagarto(TagAdapter tagAdapter)
Invokes Lagarto parser with provided set of adapters
and returns processed content.
|
char[] |
parse(javax.servlet.http.HttpServletRequest request)
Parses given and return adapted content.
|
protected abstract char[] |
parse(TagWriter rootTagWriter,
javax.servlet.http.HttpServletRequest request)
Creates set of nested adapters and
invokes lagarto parsing . |
protected LagartoParser lagartoParser
protected FastCharArrayWriter fastCharArrayWriter
protected TagWriter tagWriter
public void init(char[] content)
public char[] parse(javax.servlet.http.HttpServletRequest request)
parse(jodd.lagarto.TagWriter, javax.servlet.http.HttpServletRequest)
protected abstract char[] parse(TagWriter rootTagWriter, javax.servlet.http.HttpServletRequest request)
invokes lagarto parsing
.
May be used if modifications does not overlap so everything can
be done within single visit (i.e. within just one parsing).
Returns parsed content so it may be modified afterwards.public char[] invokeLagarto(TagAdapter tagAdapter)
Copyright © 2003-present Jodd Team