Class AnnotatedMethodHandlerInterceptor<A extends java.lang.annotation.Annotation>

  • Type Parameters:
    A - Annotation type
    All Implemented Interfaces:
    org.springframework.web.servlet.HandlerInterceptor

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void afterCompletion​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Exception ex)  
      protected void afterCompletion​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Exception ex, A annotation)  
      java.lang.Class<A> getAnnotationType()  
      protected A getMethodAnnotation​(javax.servlet.http.HttpServletRequest request, org.springframework.web.method.HandlerMethod handlerMethod)  
      protected void postHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.ModelAndView modelAndView)  
      protected void postHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.ModelAndView modelAndView, A annotation)  
      protected boolean preHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod)  
      protected boolean preHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, A annotation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotatedMethodHandlerInterceptor

        public AnnotatedMethodHandlerInterceptor()
    • Method Detail

      • preHandle

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

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

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

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

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

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

        public final java.lang.Class<A> getAnnotationType()
      • getMethodAnnotation

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