I have the following interceptor:
@Component
public class ExternalLinkInterceptor extends HandlerInterceptorAdapter {
private static final Logger logger = Logger.getLogger(ExternalLinkInterceptor.class);
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
logger.info("preHandle ~ invoked");
}
}
it is supposed to intercept before request handle to the following controller method:
@Controller
@PreAuthorize("isAuthenticated()")
@RequestMapping("/assay/process")
public class VariantPrioritizationsController extends AssayBaseController{
private static final Logger logger = Logger.getLogger(VariantPrioritizationsController.class);
@RequestMapping("/openAnalyticalProjectForAssay")
public ModelAndView openAnalyticalProjectForAssay(HttpSession session,@RequestParam(value = "analyticalProjId", required=true)String projectId) throws PanDaApplicationException{
//code
}
}
this is the interceptor declaration in the spring-servlet.xml:
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/assay/process/openAnalyticalProjectForAssay*"/>
<beans:bean class="com.syngenta.panda.web.mvc.interceptor.ExternalLinkInterceptor"/>
</mvc:interceptor>
</mvc:interceptors>
now my interceptor is never invoked and I don't know why?! any help