Class AnnotatedMethodHandlerInterceptor<A extends java.lang.annotation.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 java.lang.annotation.Annotation> extends MethodHandlerInterceptor
The annotation methodHandlerInterceptorabstract implementation- Since:
- 1.0.0
- Author:
- Mercy
-
-
Constructor Summary
Constructors Constructor Description AnnotatedMethodHandlerInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Exception ex)protected voidafterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Exception ex, A annotation)protected AgetAnnotation(org.springframework.web.method.HandlerMethod handlerMethod)java.lang.Class<A>getAnnotationType()protected AgetMethodAnnotation(javax.servlet.http.HttpServletRequest request, org.springframework.web.method.HandlerMethod handlerMethod)protected voidpostHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.ModelAndView modelAndView)protected voidpostHandle(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 booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handlerMethod)protected booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.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
-
-
-
-
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:
preHandlein classMethodHandlerInterceptor- 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:
postHandlein classMethodHandlerInterceptor- 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:
afterCompletionin classMethodHandlerInterceptor- 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)
-
getAnnotation
protected A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod)
-
-