com.xdnote.xdcore
类 BaseFilter
java.lang.Object
com.xdnote.xdcore.BaseFilter
public class BaseFilter
- extends java.lang.Object
MVC的控制器,配置xMap后,可以根据请求与xMap里面的的key进行匹配,匹配到则按匹配到的处理Action执行请求
方法摘要 |
void |
destroy()
|
void |
doFilter(ServletRequest req,
ServletResponse resp,
FilterChain fc)
控制器,如果想扩展一下,可以自己写一个Filter继承本Filter,实现的被捕super.doFilter一下,再加扩展代码 |
void |
init(FilterConfig config)
|
从类 java.lang.Object 继承的方法 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseFilter
public BaseFilter()
doFilter
public void doFilter(ServletRequest req,
ServletResponse resp,
FilterChain fc)
throws java.io.IOException,
ServletException
- 控制器,如果想扩展一下,可以自己写一个Filter继承本Filter,实现的被捕super.doFilter一下,再加扩展代码
- 抛出:
java.io.IOException
ServletException
init
public void init(FilterConfig config)
throws ServletException
- 抛出:
ServletException
destroy
public void destroy()