Class LogHandlerAndViewNameInterceptor

java.lang.Object
com.foreach.across.modules.logging.request.LogHandlerAndViewNameInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class LogHandlerAndViewNameInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
Interceptor that registers both the handler name and view name as request attribute. Used by the RequestLoggerFilter.
Author:
Arne Vandamme
  • Field Details

    • ATTRIBUTE_HANDLER

      public static final String ATTRIBUTE_HANDLER
    • ATTRIBUTE_VIEW_NAME

      public static final String ATTRIBUTE_VIEW_NAME
  • Constructor Details

    • LogHandlerAndViewNameInterceptor

      public LogHandlerAndViewNameInterceptor()
  • Method Details

    • preHandle

      public boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) throws Exception
      Specified by:
      preHandle in interface org.springframework.web.servlet.HandlerInterceptor
      Throws:
      Exception
    • postHandle

      public final void postHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
      Specified by:
      postHandle in interface org.springframework.web.servlet.HandlerInterceptor