Package cn.dev33.satoken.strategy.hooks
Class SaFirewallCheckHookForBlackPath
java.lang.Object
cn.dev33.satoken.strategy.hooks.SaFirewallCheckHookForBlackPath
- All Implemented Interfaces:
SaFirewallCheckHook
防火墙策略校验钩子函数:请求 path 黑名单校验
- Since:
- 1.41.0
- Author:
- click33
-
Field Summary
FieldsModifier and TypeFieldDescription请求 path 黑名单默认实例 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidresetConfig(String... paths) 重载配置
-
Field Details
-
instance
默认实例 -
blackPaths
请求 path 黑名单
-
-
Constructor Details
-
SaFirewallCheckHookForBlackPath
public SaFirewallCheckHookForBlackPath()
-
-
Method Details
-
resetConfig
重载配置- Parameters:
paths- 黑名单 path 列表
-
execute
执行的方法- Specified by:
executein interfaceSaFirewallCheckHook- Parameters:
req- 请求对象res- 响应对象extArg- 扩展预留参数
-