public abstract class AbstractFormCheckStrategy extends Object implements FormCheckStrategy
Constructor and Description |
---|
AbstractFormCheckStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.servlet.http.HttpServletRequest request,
boolean isModifiedCheck)
实施检查策略
|
protected abstract boolean |
applyIfTokenValue(String formToken)
根据判断token值来决定是否应用检查规则
|
protected String |
getFormToken(javax.servlet.http.HttpServletRequest request)
获取token
|
void |
setFormManager(FormManager formManager) |
public void apply(javax.servlet.http.HttpServletRequest request, boolean isModifiedCheck)
FormCheckStrategy
apply
in interface FormCheckStrategy
request
- 当前请求isModifiedCheck
- 是否检查表单数据变更protected String getFormToken(javax.servlet.http.HttpServletRequest request)
request
- protected abstract boolean applyIfTokenValue(String formToken)
formToken
- public void setFormManager(FormManager formManager)
Copyright © 2006–2018 TinyGroup. All rights reserved.