Servlet3.0新特性WebFilter(Annotation Filter)详解
2017-09-14 10:49
507 查看
摘要:
Servlet3.0作为J2EE 6规范一部分,并随J2EE6一起发布,WeFilter是过滤器注解,是Servlet3.0的新特性,不需要在web.xml进行配置,简化了配置。
OneFilter:
TwoFilter:
ThreeFilter:
FourFilter:
FiveFilter:
Servlet3.0作为J2EE 6规范一部分,并随J2EE6一起发布,WeFilter是过滤器注解,是Servlet3.0的新特性,不需要在web.xml进行配置,简化了配置。
Name | Type | Required | Description |
filterName | String | Optional | Name of the filter. |
value or urlPatterns | String[] | Required | Specify one or more URL patterns to which the filter applies. Either of attribute can be used, but not both. |
dispatcherTypes | DispatcherType[] | Optional | Specify types of dispatcher to which the filter applies. Default isjavax.servlet.DispatcherType.REQUEST |
servletNames | String[] | Optional | Specify names of servlets to which the filter applies. |
displayName | String | Optional | Display name of the filter. |
description | String | Optional | Description of the filter. |
asyncSupported | boolean | Optional | Specify whether the filter supports asynchronous operation mode. Default is false. |
initParams | WebInitParam[] | Optional | Specify one or more initialization parameters of the filter. Each parameter is specified by@WebInitParamannotation type. |
smallIcon | String | Optional | Specify name of the small icon of the filter. |
largeIcon | String | Optional | Specify name of the large icon of the filter. |
相关文章推荐
- Servlet3.0新特性@WebFilter与过滤器的初始化
- Servlet3.0新特性,注解配置,@WebServlet,@WebFilter
- JavaWeb学习之Servlet3.0新特性详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- Web.xml 中的listener、 filter、servlet 加载顺序及其详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解(转)
- Servlet 3.0 新特性详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- web.xml 中的context-param 、listener、 filter、servlet 加载顺序及其详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- Servlet 3.0 新特性详解(一)概述
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- 详解web.xml 中的listener、 filter、servlet 加载顺序
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- Servlet 3.0 新特性详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- web.xml 中的context-param 、listener、 filter、servlet 加载顺序及其详解
- web.xml 中的listener、 filter、servlet 加载顺序及其详解