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
Direct Known Subclasses:
IdempotentAnnotatedMethodHandlerInterceptor

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

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final void
    afterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, Exception ex)
     
    protected void
    afterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, Exception ex, A annotation)
     
    protected A
    getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod)
     
    final Class<A>
     
    protected final A
    getMethodAnnotation(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.method.HandlerMethod handlerMethod)
     
    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)
     
    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)
     
    protected final boolean
    preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod)
     
    protected boolean
    preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, A annotation)
     

    Methods inherited from class io.microsphere.spring.webmvc.interceptor.MethodHandlerInterceptor

    afterCompletion, postHandle, preHandle, supports

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
    • getAnnotation

      protected A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod)