tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r951892 - /tomcat/trunk/java/org/apache/catalina/valves/JDBCAccessLogValve.java
Date Sun, 06 Jun 2010 16:42:56 GMT
Author: markt
Date: Sun Jun  6 16:42:56 2010
New Revision: 951892

URL: http://svn.apache.org/viewvc?rev=951892&view=rev
Log:
Add AccessLog interface to JDBCAccessLog

Modified:
    tomcat/trunk/java/org/apache/catalina/valves/JDBCAccessLogValve.java

Modified: tomcat/trunk/java/org/apache/catalina/valves/JDBCAccessLogValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/JDBCAccessLogValve.java?rev=951892&r1=951891&r2=951892&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/JDBCAccessLogValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/JDBCAccessLogValve.java Sun Jun  6 16:42:56
2010
@@ -29,6 +29,7 @@ import java.util.Properties;
 
 import javax.servlet.ServletException;
 
+import org.apache.catalina.AccessLog;
 import org.apache.catalina.LifecycleException;
 import org.apache.catalina.LifecycleState;
 import org.apache.catalina.connector.Request;
@@ -114,7 +115,7 @@ import org.apache.tomcat.util.res.String
  * @author Peter Rossbach
  */
 
-public final class JDBCAccessLogValve extends ValveBase {
+public final class JDBCAccessLogValve extends ValveBase implements AccessLog {
 
     // ----------------------------------------------------------- Constructors
 
@@ -445,10 +446,17 @@ public final class JDBCAccessLogValve ex
     @Override
     public void invoke(Request request, Response response) 
         throws IOException, ServletException {
-        final String EMPTY = "" ;
         
         getNext().invoke(request, response);
 
+        log (request, response, 0);
+    }
+
+
+    @Override
+    public void log(Request request, Response response, long time) {
+        final String EMPTY = "" ;
+        
         String remoteHost;
         if(resolveHosts)
             remoteHost = request.getRemoteHost();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message