程序包 com.sh.json.util
类 WebHijackPreventionStrategy
java.lang.Object
com.sh.json.util.WebHijackPreventionStrategy
Defines base implementations for preventing WebHijack in AJAX applications.
The default implementations are:
- COMMENTS - wraps the string with /* *\/
- INFINITE_LOOP - prepends "while(1);"
-
字段概要
字段修饰符和类型字段说明static final WebHijackPreventionStrategyWraps the string with /* *\/static final WebHijackPreventionStrategyPrepends "while(1);" -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
COMMENTS
Wraps the string with /* *\/ -
INFINITE_LOOP
Prepends "while(1);"
-
-
构造器详细资料
-
WebHijackPreventionStrategy
public WebHijackPreventionStrategy()
-
-
方法详细资料
-
protect
Transforms the input with the desired strategy.- 参数:
str- a json string- 返回:
- String - the transformed json string
-