public class JFinalFilter extends Object implements javax.servlet.Filter
| 限定符和类型 | 字段和说明 |
|---|---|
protected Constants |
constants |
protected int |
contextPathLength |
protected String |
encoding |
protected Handler |
handler |
protected static JFinal |
jfinal |
protected JFinalConfig |
jfinalConfig |
protected static Log |
log |
| 构造器和说明 |
|---|
JFinalFilter() |
JFinalFilter(JFinalConfig jfinalConfig)
支持 web 项目无需 web.xml 配置文件,便于嵌入式整合 jetty、undertow
|
protected JFinalConfig jfinalConfig
protected int contextPathLength
protected Constants constants
protected String encoding
protected Handler handler
protected static Log log
protected static final JFinal jfinal
public JFinalFilter()
public JFinalFilter(JFinalConfig jfinalConfig)
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init 在接口中 javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter 在接口中 javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy 在接口中 javax.servlet.Filterprotected void createJFinalConfig(String configClass)
Copyright © 2022. All rights reserved.