javax.servlet.FilterChain翻译

<!-- ========= START OF TOP NAVBAR ======= --> <!-- -->
JavaTM 2 Platform
Ent. Ed. v1.4
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->

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

<!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><!-- -->

Method Summary
void doFilter(ServletRequestrequest, ServletResponseresponse)
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. 使得链中的下一个过滤器被调用,如果该调用过滤器已是链中的最后一个过滤器, 那么使得链尾部的资源被调用。

<!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><!-- -->

Method Detail
<!-- -->

doFilter

public void doFilter(ServletRequestrequest,
                     ServletResponseresponse)
              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
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- -->
JavaTM 2 Platform
Ent. Ed. v1.4
<!-- ======== END OF BOTTOM NAVBAR ======= -->
Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

你可能感兴趣的:(html,servlet,sun)