Class RequestLoggerPreprocessor

java.lang.Object
org.apache.sling.engine.impl.log.RequestLoggerPreprocessor
All Implemented Interfaces:
javax.servlet.Filter, org.osgi.service.http.whiteboard.Preprocessor

public class RequestLoggerPreprocessor extends Object implements org.osgi.service.http.whiteboard.Preprocessor
Record the starting time of the request and make it available to the request logger
  • Constructor Details

    • RequestLoggerPreprocessor

      public RequestLoggerPreprocessor()
  • Method Details

    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter
    • getRequestStartTime

      public static long getRequestStartTime(javax.servlet.ServletRequest request)