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

Quick Search    Search Deep

filters
Class RequestDumperFilter  view RequestDumperFilter download RequestDumperFilter.java

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

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

Example filter that dumps interesting state information about a request to the associated servlet context log file, before allowing the servlet to process the request in the usual way. This can be installed as needed to assist in debugging problems.

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

Field Summary
private  javax.servlet.FilterConfig filterConfig
          The filter configuration object we are associated with.
 
Constructor Summary
RequestDumperFilter()
           
 
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

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

RequestDumperFilter

public RequestDumperFilter()
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.