Class WebHijackPreventionStrategy
java.lang.Object
net.sf.json.util.WebHijackPreventionStrategy
- Direct Known Subclasses:
WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy, WebHijackPreventionStrategy.InfiniteLoopWebHijackPreventionStrategy
Defines base implementations for preventing WebHijack in AJAX applications.
The default implementations are:
- COMMENTS - wraps the string with /* *\/
- INFINITE_LOOP - prepends "while(1);"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WebHijackPreventionStrategyWraps the string with /* *\/static final WebHijackPreventionStrategyPrepends "while(1);" -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COMMENTS
Wraps the string with /* *\/ -
INFINITE_LOOP
Prepends "while(1);"
-
-
Constructor Details
-
WebHijackPreventionStrategy
public WebHijackPreventionStrategy()
-
-
Method Details
-
protect
-