public class HtmlStaplerFilter extends SimpleLagartoServletFilter
createBundleManager(javax.servlet.ServletContext, jodd.htmlstapler.HtmlStaplerBundlesManager.Strategy)
bundle manager}.SimpleLagartoServletFilter.LagartoParsingProcessor
Modifier and Type | Field and Description |
---|---|
protected HtmlStaplerBundlesManager |
bundlesManager |
protected int |
cacheMaxAge |
protected boolean |
enabled |
protected boolean |
resetOnStart |
protected HtmlStaplerBundlesManager.Strategy |
staplerStrategy |
protected boolean |
stripHtml |
protected boolean |
useGzip |
Constructor and Description |
---|
HtmlStaplerFilter() |
Modifier and Type | Method and Description |
---|---|
protected HtmlStaplerBundlesManager |
createBundleManager(javax.servlet.ServletContext servletContext,
HtmlStaplerBundlesManager.Strategy strategy)
Creates
HtmlStaplerBundlesManager instance. |
protected SimpleLagartoServletFilter.LagartoParsingProcessor |
createParsingProcessor()
Returns custom
parsing processor . |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected boolean |
processActionPath(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.lang.String actionPath)
Manually process the action path and returns
true if path is consumed. |
protected void |
readFilterConfigParameters(javax.servlet.FilterConfig filterConfig,
java.lang.Object target,
java.lang.String... parameters)
Reads filter config parameters and set into destination target.
|
protected void |
sendBundleFile(javax.servlet.http.HttpServletResponse resp,
java.io.File bundleFile)
Outputs bundle file to the response.
|
parse
acceptActionPath, destroy, doFilter
protected HtmlStaplerBundlesManager bundlesManager
protected boolean enabled
protected boolean stripHtml
protected boolean resetOnStart
protected boolean useGzip
protected int cacheMaxAge
protected HtmlStaplerBundlesManager.Strategy staplerStrategy
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
init
in class LagartoServletFilter
javax.servlet.ServletException
protected void readFilterConfigParameters(javax.servlet.FilterConfig filterConfig, java.lang.Object target, java.lang.String... parameters)
protected HtmlStaplerBundlesManager createBundleManager(javax.servlet.ServletContext servletContext, HtmlStaplerBundlesManager.Strategy strategy)
HtmlStaplerBundlesManager
instance.protected SimpleLagartoServletFilter.LagartoParsingProcessor createParsingProcessor()
SimpleLagartoServletFilter
parsing processor
.
Returns null
when content does not have to be parsed.createParsingProcessor
in class SimpleLagartoServletFilter
protected boolean processActionPath(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, java.lang.String actionPath) throws java.io.IOException
LagartoServletFilter
true
if path is consumed.
When path is consumed, filter chain is not continued.
By default, it returns false
.processActionPath
in class LagartoServletFilter
java.io.IOException
protected void sendBundleFile(javax.servlet.http.HttpServletResponse resp, java.io.File bundleFile) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team