Class AnnotatedMethodHandlerInterceptor<A extends Annotation>

java.lang.Object
io.microsphere.spring.webmvc.interceptor.MethodHandlerInterceptor
io.microsphere.spring.webmvc.interceptor.AnnotatedMethodHandlerInterceptor<A>
Type Parameters:
A - Annotation type
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public abstract class AnnotatedMethodHandlerInterceptor<A extends Annotation> extends MethodHandlerInterceptor
The annotation method HandlerInterceptor abstract implementation
Since:
1.0.0
Author:
Mercy
  • Constructor Details

    • AnnotatedMethodHandlerInterceptor

      public AnnotatedMethodHandlerInterceptor()
  • Method Details

    • preHandle

      protected final boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod) throws Exception
      Specified by:
      preHandle in class MethodHandlerInterceptor
      Throws:
      Exception
    • preHandle

      protected boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, A annotation) throws Exception
      Throws:
      Exception
    • postHandle

      protected final void postHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.ModelAndView modelAndView) throws Exception
      Specified by:
      postHandle in class MethodHandlerInterceptor
      Throws:
      Exception
    • postHandle

      protected void postHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.ModelAndView modelAndView, A annotation) throws Exception
      Throws:
      Exception
    • afterCompletion

      protected final void afterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, Exception ex) throws Exception
      Specified by:
      afterCompletion in class MethodHandlerInterceptor
      Throws:
      Exception
    • afterCompletion

      protected void afterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, Exception ex, A annotation) throws Exception
      Throws:
      Exception
    • getAnnotationType

      public final Class<A> getAnnotationType()
    • getMethodAnnotation

      protected final A getMethodAnnotation(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.method.HandlerMethod handlerMethod)