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 TypeMethodDescriptionprotected final voidafterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, Exception ex) protected voidafterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, Exception ex, A annotation) protected AgetAnnotation(org.springframework.web.method.HandlerMethod handlerMethod) protected final AgetMethodAnnotation(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.method.HandlerMethod handlerMethod) protected final voidpostHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.ModelAndView modelAndView) protected voidpostHandle(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 booleanpreHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod) protected booleanpreHandle(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
-
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:
preHandlein 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:
postHandlein 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:
afterCompletionin 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) -
getAnnotation
-