|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.json.util.WebHijackPreventionStrategy
public abstract class WebHijackPreventionStrategy
Defines base implementations for preventing WebHijack in AJAX applications. The default implementations are:
| Field Summary | |
|---|---|
static WebHijackPreventionStrategy |
COMMENTS
Wraps the string with /* *\/ |
static WebHijackPreventionStrategy |
INFINITE_LOOP
Prepends "while(1);" |
| Constructor Summary | |
|---|---|
WebHijackPreventionStrategy()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
protect(java.lang.String str)
Transforms the input with the desired strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final WebHijackPreventionStrategy COMMENTS
public static final WebHijackPreventionStrategy INFINITE_LOOP
| Constructor Detail |
|---|
public WebHijackPreventionStrategy()
| Method Detail |
|---|
public abstract java.lang.String protect(java.lang.String str)
str - a json string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||