Enhydra 5.1 API

org.enhydra.servlet.filter
Class StandardLoggingServiceInterceptor

java.lang.Object
  |
  +--org.enhydra.servlet.filter.StandardLoggingServiceInterceptor
All Implemented Interfaces:
org.apache.tomcat.core.ServiceInterceptor

public class StandardLoggingServiceInterceptor
extends java.lang.Object
implements org.apache.tomcat.core.ServiceInterceptor

This is part of the BasicTransactionFilter. This is a filter that logs information in a standard format so that tools like Web Analyzer can easily parse the data. Every call is passed through to the real Servlet.

Author:
Andy John
, Kent Henneuse , Shawn McMurdo
See Also:
StandardLoggingFilter, StandardLoggingResponse

Constructor Summary
StandardLoggingServiceInterceptor()
          Create a new StandardLoggingServiceInterceptor.
 
Method Summary
 void postInvoke(org.apache.tomcat.core.Context context, javax.servlet.Servlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void preInvoke(org.apache.tomcat.core.Context context, javax.servlet.Servlet servlet, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Service a request.
 void setLBSLogInformation(org.apache.log4j.Logger logger, org.apache.log4j.Level logLevel, long id)
          Set the information that will be needed to make logging to the Multiserver log possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardLoggingServiceInterceptor

public StandardLoggingServiceInterceptor()
Create a new StandardLoggingServiceInterceptor.

Method Detail

preInvoke

public void preInvoke(org.apache.tomcat.core.Context context,
                      javax.servlet.Servlet servlet,
                      javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse res)
Service a request. This will be passed through to the real Servlet. After the call returns, logData() will be called on the StandardLoggingResponse passed in to the constructor.

Specified by:
preInvoke in interface org.apache.tomcat.core.ServiceInterceptor
Parameters:
req - The request object.
res - The response object.

postInvoke

public void postInvoke(org.apache.tomcat.core.Context context,
                       javax.servlet.Servlet servlet,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
Specified by:
postInvoke in interface org.apache.tomcat.core.ServiceInterceptor

setLBSLogInformation

public void setLBSLogInformation(org.apache.log4j.Logger logger,
                                 org.apache.log4j.Level logLevel,
                                 long id)
Set the information that will be needed to make logging to the Multiserver log possible.

Parameters:
logLevel - the Log Level of the log option REQUEST
id - the transactionId of the request/response pair

Enhydra 5.1 API