@WebFilter(value="/*")
public class LogXFilter
extends java.lang.Object
implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
protected AntPathMatcher |
antPathMatcher |
protected java.lang.String[] |
fieldNmaes |
protected java.lang.String[] |
logxHeaders |
static java.lang.String |
processId |
protected java.lang.String[] |
urlMappingsExcludes |
protected java.lang.String[] |
urlMappingsIncludes
If annotation is used, the url mapping will be /*, this mapping can be
overridden by the definitions in web.xml or the configuration values in the
logx.properties.
|
| Constructor and Description |
|---|
LogXFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected boolean |
isUrlMatch(javax.servlet.http.HttpServletRequest httpRequest)
Check if the url mappings matching
|
protected void |
prepareLogXFields(javax.servlet.http.HttpServletRequest httpRequest) |
protected void |
prepareSysFields() |
protected void |
removeLogXFields(javax.servlet.http.HttpServletRequest httpRequest) |
protected void |
removeSysFields() |
public static java.lang.String processId
protected java.lang.String[] fieldNmaes
protected java.lang.String[] logxHeaders
protected java.lang.String[] urlMappingsIncludes
protected java.lang.String[] urlMappingsExcludes
protected AntPathMatcher antPathMatcher
public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionprotected void prepareSysFields()
protected void removeSysFields()
protected void prepareLogXFields(javax.servlet.http.HttpServletRequest httpRequest)
protected void removeLogXFields(javax.servlet.http.HttpServletRequest httpRequest)
protected boolean isUrlMatch(javax.servlet.http.HttpServletRequest httpRequest)
httpRequest - public void destroy()
destroy in interface javax.servlet.FilterCopyright © 2019. All Rights Reserved.