public interface GlobalRequestFilterProvider extends Mutable
限定符和类型 | 字段和说明 |
---|---|
static int |
CURRENT_LEVEL |
static java.lang.String |
MARK_STRING |
限定符和类型 | 方法和说明 |
---|---|
void |
destroy()
销毁过滤器
|
void |
doFilter(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.FilterChain filterChain)
过滤servlet
|
java.lang.String |
externalFilterClassName()
外部的过滤器类名,需要把相应的jar包放到web服务器的classpath中
|
java.lang.String |
filterName()
过滤器的名字
|
void |
init(javax.servlet.FilterConfig filterConfig)
初始化过滤器
注:该接口生效必须重启服务器
|
java.util.Map<java.lang.String,java.lang.String> |
initializationParameters()
过滤器的初始化参数
|
java.lang.String[] |
urlPatterns()
匹配的地址
|
mark4Provider
currentAPILevel
static final java.lang.String MARK_STRING
static final int CURRENT_LEVEL
java.lang.String filterName()
java.lang.String[] urlPatterns()
java.lang.String externalFilterClassName()
void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
filterConfig
- 过滤器配置javax.servlet.ServletException
java.util.Map<java.lang.String,java.lang.String> initializationParameters()
void doFilter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.FilterChain filterChain) throws java.io.IOException, javax.servlet.ServletException
req
- http请求res
- http响应filterChain
- 过滤链表java.io.IOException
javax.servlet.ServletException
void destroy()