public class FormRepeatAndCsrfCheckInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Constructor and Description |
---|
FormRepeatAndCsrfCheckInterceptor() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCheckUrls() |
protected boolean |
isSkipped(String path)
判断给定的URL是否需要进行检查
|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
This implementation always returns
true . |
void |
setCheckUrls(List<String> checkUrls) |
void |
setFormCheckStrategy(FormCheckStrategy formCheckStrategy) |
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
true
.preHandle
in interface org.springframework.web.servlet.HandlerInterceptor
preHandle
in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Exception
protected boolean isSkipped(String path)
public void setFormCheckStrategy(FormCheckStrategy formCheckStrategy)
Copyright © 2006–2018 TinyGroup. All rights reserved.