public class CsrfInterceptor
extends java.lang.Object
implements org.springframework.web.servlet.HandlerInterceptor
限定符和类型 | 字段和说明 |
---|---|
private boolean |
admin |
private CsrfCache |
DEFAULT_CACHE |
private org.springframework.web.servlet.LocaleResolver |
localeResolver |
protected java.util.Map<org.springframework.web.method.HandlerMethod,CsrfCache> |
methodCache |
构造器和说明 |
---|
CsrfInterceptor(boolean admin) |
protected java.util.Map<org.springframework.web.method.HandlerMethod,CsrfCache> methodCache
private CsrfCache DEFAULT_CACHE
private boolean admin
private org.springframework.web.servlet.LocaleResolver localeResolver
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler) throws javax.servlet.ServletException
preHandle
在接口中 org.springframework.web.servlet.HandlerInterceptor
javax.servlet.ServletException