Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

filters
Class ExampleFilter  view ExampleFilter download ExampleFilter.java

java.lang.Object
  extended byfilters.ExampleFilter
All Implemented Interfaces:
javax.servlet.Filter

public final class ExampleFilter
extends java.lang.Object
implements javax.servlet.Filter

Example filter that can be attached to either an individual servlet or to a URL pattern. This filter performs the following functions:

Version:
$Revision: 267129 $ $Date: 2004-03-18 11:40:35 -0500 (Thu, 18 Mar 2004) $

Field Summary
private  java.lang.String attribute
          The request attribute name under which we store a reference to ourself.
private  javax.servlet.FilterConfig filterConfig
          The filter configuration object we are associated with.
 
Constructor Summary
ExampleFilter()
           
 
Method Summary
 void destroy()
          Take this filter out of service.
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Time the processing that is performed by all subsequent filters in the current filter stack, including the ultimately invoked servlet.
 void init(javax.servlet.FilterConfig filterConfig)
          Place this filter into service.
 java.lang.String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attribute

private java.lang.String attribute
The request attribute name under which we store a reference to ourself.


filterConfig

private javax.servlet.FilterConfig filterConfig
The filter configuration object we are associated with. If this value is null, this filter instance is not currently configured.

Constructor Detail

ExampleFilter

public ExampleFilter()
Method Detail

destroy

public void destroy()
Take this filter out of service.

Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Time the processing that is performed by all subsequent filters in the current filter stack, including the ultimately invoked servlet.

Specified by:
doFilter in interface javax.servlet.Filter

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Place this filter into service.

Specified by:
init in interface javax.servlet.Filter

toString

public java.lang.String toString()
Return a String representation of this object.