You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/09/29 02:33:21 UTC
svn commit: r451072 - in /incubator/roller/trunk:
metadata/xdoclet/filter-mappings.xml
src/org/apache/roller/ui/core/filters/DebugFilter.java
Author: agilliland
Date: Thu Sep 28 17:33:21 2006
New Revision: 451072
URL: http://svn.apache.org/viewvc?view=rev&rev=451072
Log:
A couple tweaks for DebugFilter.
- added in a bit more debugging.
- added DebugFilter to filter-mappings and have it commented out by default.
Modified:
incubator/roller/trunk/metadata/xdoclet/filter-mappings.xml
incubator/roller/trunk/src/org/apache/roller/ui/core/filters/DebugFilter.java
Modified: incubator/roller/trunk/metadata/xdoclet/filter-mappings.xml
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/metadata/xdoclet/filter-mappings.xml?view=diff&rev=451072&r1=451071&r2=451072
==============================================================================
--- incubator/roller/trunk/metadata/xdoclet/filter-mappings.xml (original)
+++ incubator/roller/trunk/metadata/xdoclet/filter-mappings.xml Thu Sep 28 17:33:21 2006
@@ -9,7 +9,13 @@
required for Servlet API 2.4 containers, such as Tomcat 5+ and Resin 3+, but should be
commented out for Servlet API 2.3 containers, like Tomcat 4.x and Resin 2.x.
-->
-
+<!--
+<filter-mapping>
+ <filter-name>DebugFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ <dispatcher>REQUEST</dispatcher>
+</filter-mapping>
+-->
<!-- Ensures character encoding set to UTF-8 and JSTL and Struts locales are in sync.
Note: Any filters preceding this one MUST not cause request parsing. -->
<filter-mapping>
Modified: incubator/roller/trunk/src/org/apache/roller/ui/core/filters/DebugFilter.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/ui/core/filters/DebugFilter.java?view=diff&rev=451072&r1=451071&r2=451072
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/ui/core/filters/DebugFilter.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/ui/core/filters/DebugFilter.java Thu Sep 28 17:33:21 2006
@@ -15,11 +15,6 @@
* copyright in this work, please see the NOTICE file in the top level
* directory of this distribution.
*/
-/*
- * DebugFilter.java
- *
- * Created on April 17, 2006, 10:30 AM
- */
package org.apache.roller.ui.core.filters;
@@ -57,9 +52,21 @@
log.info("ENTERING "+request.getRequestURL());
+ // some info about the request and response
+ log.info("Response Object:");
+ log.info(" isCommited = "+response.isCommitted());
+ log.info(" bufferSize = "+response.getBufferSize());
+ log.info("");
+
chain.doFilter(request, response);
log.info("EXITING "+request.getRequestURL());
+
+ // some info about the request and response
+ log.info("Response Object:");
+ log.info(" isCommited = "+response.isCommitted());
+ log.info(" bufferSize = "+response.getBufferSize());
+ log.info("");
}