javax.servlet.FilterChain

javax.servlet
Interface FilterChain
public interface FilterChain
A FilterChain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource. Filters use the FilterChain to invoke the next filter in the chain, or if the calling filter is the last filter in the chain, to invoke the resource at the end of the chain. FilterChain是一个由servlet容器提供给开发人员的对象,给出某资源的过滤请求的调用链视图。 Filter使用FilterChain调用链中的下一个过滤器,如果调用过滤器是链中的最后一个过滤器, 调用链尾部的资源。


Since:
Servlet 2.3
See Also:
Filter
Method Summary
void
doFilter(ServletRequest request, ServletResponse response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. 使得链中的下一个过滤器被调用,如果该调用过滤器已是链中的最后一个过滤器, 那么使得链尾部的资源被调用。
Method Detail
doFilterpublic void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. 使得链中的下一个过滤器被调用,如果该调用过滤器已是链中的最后一个过滤器, 那么使得链尾部的资源被调用。

Parameters:
request - the request to pass along the chain. 沿着链传递的请求。
response - the response to pass along the chain. 沿着链传递的响应。
Throws:
IOException
ServletException
Since:
2.3
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值