public class NutFilter extends Object implements javax.servlet.Filter
限定符和类型 | 字段和说明 |
---|---|
protected Set<String> |
exclusionPaths
需要排除的固定路径
|
protected Pattern |
exclusionsPrefix
需要排除的路径前缀
|
protected Pattern |
exclusionsSuffix
需要排除的后缀名
|
protected ActionHandler |
handler |
protected static String |
IGNORE |
protected Pattern |
ignorePtn |
protected static Log |
log |
protected javax.servlet.ServletContext |
sc |
protected String |
selfName |
protected SessionProvider |
sp |
构造器和说明 |
---|
NutFilter() |
限定符和类型 | 方法和说明 |
---|---|
void |
_init(javax.servlet.FilterConfig conf) |
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig conf) |
protected boolean |
isExclusion(String matchUrl)
过滤请求.
|
protected void |
nextChain(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
javax.servlet.FilterChain chain) |
protected static Log log
protected ActionHandler handler
protected Pattern ignorePtn
protected String selfName
protected SessionProvider sp
protected Pattern exclusionsPrefix
protected Pattern exclusionsSuffix
protected javax.servlet.ServletContext sc
public void init(javax.servlet.FilterConfig conf) throws javax.servlet.ServletException
init
在接口中 javax.servlet.Filter
javax.servlet.ServletException
public void _init(javax.servlet.FilterConfig conf) throws javax.servlet.ServletException
javax.servlet.ServletException
public void destroy()
destroy
在接口中 javax.servlet.Filter
protected boolean isExclusion(String matchUrl) throws IOException, javax.servlet.ServletException
matchUrl
- 待匹配URLIOException
- 不太可能抛出javax.servlet.ServletException
- 不太可能抛出public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
在接口中 javax.servlet.Filter
IOException
javax.servlet.ServletException
protected void nextChain(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
Copyright © 2017. All rights reserved.