org.apache.cocoon.servlet
Class DebugFilter

java.lang.Object
  extended by org.apache.cocoon.servlet.DebugFilter
All Implemented Interfaces:
javax.servlet.Filter

public class DebugFilter
extends Object
implements javax.servlet.Filter

Servlet filter for printing request debug information into log file.

Version:
$Id: DebugFilter.html 1343757 2012-05-29 14:45:42Z ilgrosso $

Field Summary
protected static String lineSeparator
           
 
Constructor Summary
DebugFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain filterChain)
          Log debug information about the current environment.
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineSeparator

protected static final String lineSeparator
See Also:
Constant Field Values
Constructor Detail

DebugFilter

public DebugFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException
See Also:
Filter.init(javax.servlet.FilterConfig)

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter
See Also:
Filter.destroy()

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain filterChain)
              throws IOException,
                     javax.servlet.ServletException
Log debug information about the current environment.

Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException
See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.