Package net.sf.json.util
Class WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy
- java.lang.Object
-
- net.sf.json.util.WebHijackPreventionStrategy
-
- net.sf.json.util.WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy
-
- Enclosing class:
- WebHijackPreventionStrategy
private static final class WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy extends WebHijackPreventionStrategy
-
-
Field Summary
-
Fields inherited from class net.sf.json.util.WebHijackPreventionStrategy
COMMENTS, INFINITE_LOOP
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CommentWebHijackPreventionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
protect(java.lang.String str)
Transforms the input with the desired strategy.
-
-
-
Method Detail
-
protect
public java.lang.String protect(java.lang.String str)
Description copied from class:WebHijackPreventionStrategy
Transforms the input with the desired strategy.- Specified by:
protect
in classWebHijackPreventionStrategy
- Parameters:
str
- a json string- Returns:
- String - the transformed json string
-
-