jodd.lagarto.filter
Class SimpleLagartoServletFilter.LagartoParsingProcessor

java.lang.Object
  extended by jodd.lagarto.filter.SimpleLagartoServletFilter.LagartoParsingProcessor
Enclosing class:
SimpleLagartoServletFilter

protected abstract static class SimpleLagartoServletFilter.LagartoParsingProcessor
extends java.lang.Object

Wrapper over Lagarto parsing process.


Field Summary
protected  jodd.io.FastCharArrayWriter fastCharArrayWriter
           
protected  LagartoParser lagartoParser
           
protected  TagWriter tagWriter
           
 
Constructor Summary
protected SimpleLagartoServletFilter.LagartoParsingProcessor()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lagartoParser

protected LagartoParser lagartoParser

fastCharArrayWriter

protected jodd.io.FastCharArrayWriter fastCharArrayWriter

tagWriter

protected TagWriter tagWriter
Constructor Detail

SimpleLagartoServletFilter.LagartoParsingProcessor

protected SimpleLagartoServletFilter.LagartoParsingProcessor()
Method Detail

init

public void init(char[] content)
Initialize processor by creating new Lagarto and root TagWriter.


parse

public char[] parse(javax.servlet.http.HttpServletRequest request)
Parses given and return adapted content. Delegates call to parse(jodd.lagarto.TagWriter, javax.servlet.http.HttpServletRequest)


parse

protected abstract char[] parse(TagWriter rootTagWriter,
                                javax.servlet.http.HttpServletRequest request)
Creates set of nested adapters and 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.


invokeLagarto

public char[] invokeLagarto(TagAdapter tagAdapter)
Invokes Lagarto parser with provided set of adapters and returns processed content.



Copyright © 2003-2012 Jodd Team