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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 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, getHandlerMethodArguments, getHandlerMethodRequestBodyArgument, getHandlerMethodReturnValue, postHandle, preHandle, supports
-
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 classMethodHandlerInterceptor
- 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 classMethodHandlerInterceptor
- 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 classMethodHandlerInterceptor
- 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
-
getMethodAnnotation
protected final A getMethodAnnotation(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.method.HandlerMethod handlerMethod)
-