|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.w3c.tidy.servlet.filter.JTidyFilter
Wrapp the Response and creates TidyProcessor who does all the work. Use this filter instead of TidyTag if you don't want to modify your JSP pages or HTML is denerated by non JSP servlets.
| Field Summary | |
static java.lang.String |
CONFIG_COMMENTS_SUBST
name of the parameter commentsSubst.
|
static java.lang.String |
CONFIG_CONFIG
name of the parameter config containing JTidy Parser configutation string.
|
static java.lang.String |
CONFIG_DOUBLE_VALIDATION
name of the parameter doubleValidation.
|
static java.lang.String |
CONFIG_PROPERTIES_FILE_NAME
name of the parameter properties.filename containing the properties file path. |
static java.lang.String |
CONFIG_TEE
name of the parameter tee.
|
static java.lang.String |
CONFIG_VALIDATE_ONLY
name of the parameter validateOnly.
|
| Constructor Summary | |
JTidyFilter()
|
|
| Method Summary | |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
Buffer the Response. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONFIG_PROPERTIES_FILE_NAME
properties.filename containing the properties file path.
public static final java.lang.String CONFIG_CONFIG
config containing JTidy Parser configutation string.
JTidy Parser configutation string
Examples of config string: indent: auto; indent-spaces: 2
public static final java.lang.String CONFIG_TEE
tee.
Do not buffer the output, Preform validation only
This may send the responce back to browser while we are still parsing the HTML
May solve problem for some applications that are flushing the OutputStream
public static final java.lang.String CONFIG_VALIDATE_ONLY
validateOnly.
validateOnly only do not change output.
public static final java.lang.String CONFIG_DOUBLE_VALIDATION
doubleValidation.
Performs validation of html processed by <jtidy:tidy> jsp tag
By default this is not done. Only Usefull for testing JTidy
This will create second requestID to store the data
public static final java.lang.String CONFIG_COMMENTS_SUBST
commentsSubst.
Special html comments:
<!--jtidy:requestID-->
<!--jtidy:validationImage-->
| Constructor Detail |
public JTidyFilter()
| Method Detail |
public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterpublic void destroy()
destroy in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOException
javax.servlet.ServletException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||