public class SecurityFilter extends Object implements FilterAction
| 限定符和类型 | 字段和说明 |
|---|---|
List<String> |
blackList
黑名单
|
List<String> |
whiteList
白名单
|
NOT_LOG_EXCEPTION| 构造器和说明 |
|---|
SecurityFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
after(FilterAfterArgs args)
在 MVC 方法之后调用
|
boolean |
before(FilterContext ctx)
在 MVC 方法之前调用
|
boolean |
isInBlackList(String str)
是否在黑名单列表中。
|
boolean |
isInWhiteList(String str)
是否在白名单列表中
|
public boolean isInWhiteList(String str)
str - 待检查的字符串public boolean isInBlackList(String str)
str - 待检查的字符串public boolean before(FilterContext ctx)
FilterActionbefore 在接口中 FilterActionctx - FilterContextpublic boolean after(FilterAfterArgs args)
FilterActionafter 在接口中 FilterActionargs - FilterAfterArgsCopyright © 2013–2021 AJAXJS. All rights reserved.