Package org.apache.sling.engine.impl.log
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) static long
getRequestStartTime
(javax.servlet.ServletRequest request) void
init
(javax.servlet.FilterConfig filterConfig)
-
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 interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejavax.servlet.Filter
-
getRequestStartTime
public static long getRequestStartTime(javax.servlet.ServletRequest request)
-