Package cn.dev33.satoken.strategy.hooks
Class SaFirewallCheckHookForPathBannedCharacter
java.lang.Object
cn.dev33.satoken.strategy.hooks.SaFirewallCheckHookForPathBannedCharacter
- All Implemented Interfaces:
SaFirewallCheckHook
public class SaFirewallCheckHookForPathBannedCharacter
extends Object
implements SaFirewallCheckHook
防火墙策略校验钩子函数:请求 path 禁止字符校验
- Since:
- 1.41.0
- Author:
- click33
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean是否严格禁止出现百分号字符 % (默认:否)默认实例 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidresetConfig(boolean bannedPercentage) 重载配置
-
Field Details
-
instance
默认实例 -
bannedPercentage
public boolean bannedPercentage是否严格禁止出现百分号字符 % (默认:否)
-
-
Constructor Details
-
SaFirewallCheckHookForPathBannedCharacter
public SaFirewallCheckHookForPathBannedCharacter()
-
-
Method Details
-
resetConfig
public void resetConfig(boolean bannedPercentage) 重载配置- Parameters:
bannedPercentage- 是否严格禁止出现百分号字符 % (默认:否)
-
execute
执行的方法- Specified by:
executein interfaceSaFirewallCheckHook- Parameters:
req- 请求对象res- 响应对象extArg- 预留扩展参数
-