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
public abstract class AnnotatedMethodHandlerInterceptor<A extends java.lang.annotation.Annotation> extends MethodHandlerInterceptor
The annotation methodHandlerInterceptor
abstract 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 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 io.microsphere.spring.webmvc.interceptor.MethodHandlerInterceptor
afterCompletion, getHandlerMethodArguments, getHandlerMethodRequestBodyArgument, getHandlerMethodReturnValue, 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:
preHandle
in 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:
postHandle
in 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:
afterCompletion
in 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)
-
-