| java.lang.Object filters.ExampleFilter
ExampleFilter | final public class ExampleFilter implements Filter(Code) | | Example filter that can be attached to either an individual servlet
or to a URL pattern. This filter performs the following functions:
- Attaches itself as a request attribute, under the attribute name
defined by the value of the
attribute initialization
parameter.
- Calculates the number of milliseconds required to perform the
servlet processing required by this request, including any
subsequently defined filters, and logs the result to the servlet
context log for this application.
author: Craig McClanahan version: $Revision: 1.2 $ $Date: 2004/03/18 16:40:33 $ |
Method Summary | |
public void | destroy() Take this filter out of service. | public void | doFilter(ServletRequest request, ServletResponse response, FilterChain chain) Time the processing that is performed by all subsequent filters in the
current filter stack, including the ultimately invoked servlet. | public void | init(FilterConfig filterConfig) Place this filter into service. | public String | toString() Return a String representation of this object. |
destroy | public void destroy()(Code) | | Take this filter out of service.
|
doFilter | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException(Code) | | Time the processing that is performed by all subsequent filters in the
current filter stack, including the ultimately invoked servlet.
Parameters: request - The servlet request we are processing Parameters: result - The servlet response we are creating Parameters: chain - The filter chain we are processing exception: IOException - if an input/output error occurs exception: ServletException - if a servlet error occurs |
toString | public String toString()(Code) | | Return a String representation of this object.
|
|
|