org.apache.cocoon.servlet
Class DebugFilter

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.servlet.DebugFilter
All Implemented Interfaces:
Filter

public class DebugFilter
extends org.apache.cocoon.util.AbstractLogEnabled
implements Filter

Servlet filter for printing request debug information into log file.

Version:
$Id: DebugFilter.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected static String lineSeparator
           
 
Constructor Summary
DebugFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain)
          Log debug information about the current environment.
 void init(FilterConfig config)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
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
Constructor Detail

DebugFilter

public DebugFilter()
Method Detail

init

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

destroy

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

doFilter

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

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


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