gboat2.base.plugin.servlet.filter
类 GboatCSSFilter
java.lang.Object
gboat2.base.plugin.servlet.filter.GboatCSSFilter
- 所有已实现的接口:
- javax.servlet.Filter
public class GboatCSSFilter
- extends Object
- implements javax.servlet.Filter
CSS 文件过滤器,解决某些主题下有部分 CSS 文件不存在的问题。
在 web.xml 中添加如下配置启用该过滤器:
<!-- css过滤器 -->
<filter>
<filter-name>gboat2CssFilter</filter-name>
<filter-class>gboat2.base.plugin.servlet.filter.GboatCSSFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>gboat2CssFilter</filter-name>
<url-pattern>*.css</url-pattern>
</filter-mapping>
- 从以下版本开始:
- 1.0
- 作者:
- zhangxj-a, 何明旺
方法摘要 |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig arg0)
|
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GboatCSSFilter
public GboatCSSFilter()
init
public void init(javax.servlet.FilterConfig arg0)
throws javax.servlet.ServletException
- 指定者:
- 接口
javax.servlet.Filter
中的 init
- 抛出:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- 指定者:
- 接口
javax.servlet.Filter
中的 doFilter
- 抛出:
IOException
javax.servlet.ServletException
destroy
public void destroy()
- 指定者:
- 接口
javax.servlet.Filter
中的 destroy
Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.