public class FeatureInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
FeaturesAreActive annotation to determine if a controller should be
activated or not.
Set the togglz.web.register-feature-interceptor to true to activate this interceptor.
| Constructor and Description |
|---|
FeatureInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T extends Enum<?>> |
enumFrom(String name,
Class<T> enumType) |
protected static <A extends Annotation> |
handlerAnnotation(org.springframework.web.method.HandlerMethod handlerMethod,
Class<A> annotationClass) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionprotected static <A extends Annotation> A handlerAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationClass)
Copyright © 2017. All Rights Reserved.