Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WICKET-6287 Switch from json.org to open-json - 6.x
* Fixed clirr issues
- Loading branch information
Showing
16 changed files
with
512 additions
and
8 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
wicket-core/src/main/java/org/apache/wicket/ajax/json/CDL.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package org.apache.wicket.ajax.json; | ||
|
||
import org.apache.wicket.WicketRuntimeException; | ||
|
||
@SuppressWarnings("javadoc") | ||
public class CDL | ||
{ | ||
|
||
public static JSONArray rowToJSONArray(JSONTokener x) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONObject rowToJSONObject(JSONArray names, JSONTokener x) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String rowToString(JSONArray ja) | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONArray toJSONArray(String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONArray toJSONArray(JSONTokener x) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONArray toJSONArray(JSONArray names, String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONArray toJSONArray(JSONArray names, JSONTokener x) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONArray ja) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONArray names, JSONArray ja) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
wicket-core/src/main/java/org/apache/wicket/ajax/json/Cookie.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.apache.wicket.ajax.json; | ||
|
||
import org.apache.wicket.WicketRuntimeException; | ||
|
||
@SuppressWarnings("javadoc") | ||
public class Cookie | ||
{ | ||
public static String escape(String string) | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONObject toJSONObject(String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONObject jo) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String unescape(String string) | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
wicket-core/src/main/java/org/apache/wicket/ajax/json/CookieList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.apache.wicket.ajax.json; | ||
|
||
import org.apache.wicket.WicketRuntimeException; | ||
|
||
@SuppressWarnings("javadoc") | ||
public class CookieList | ||
{ | ||
|
||
public static JSONObject toJSONObject(String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONObject jo) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
wicket-core/src/main/java/org/apache/wicket/ajax/json/HTTP.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.apache.wicket.ajax.json; | ||
|
||
import org.apache.wicket.WicketRuntimeException; | ||
|
||
@SuppressWarnings("javadoc") | ||
public class HTTP | ||
{ | ||
|
||
public static final String CRLF = "\r\n"; | ||
|
||
public static JSONObject toJSONObject(String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONObject jo) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
wicket-core/src/main/java/org/apache/wicket/ajax/json/HTTPTokener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.apache.wicket.ajax.json; | ||
|
||
import org.apache.wicket.WicketRuntimeException; | ||
|
||
@SuppressWarnings("javadoc") | ||
public class HTTPTokener extends JSONTokener | ||
{ | ||
|
||
public HTTPTokener(String string) | ||
{ | ||
super(string); | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public String nextToken() throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
wicket-core/src/main/java/org/apache/wicket/ajax/json/JSONML.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.apache.wicket.ajax.json; | ||
|
||
import org.apache.wicket.WicketRuntimeException; | ||
|
||
@SuppressWarnings("javadoc") | ||
public class JSONML | ||
{ | ||
|
||
public static JSONArray toJSONArray(String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONArray toJSONArray(XMLTokener x) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONObject toJSONObject(XMLTokener x) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static JSONObject toJSONObject(String string) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONArray ja) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
|
||
public static String toString(JSONObject jo) throws JSONException | ||
{ | ||
throw new WicketRuntimeException(JsonConstants.OPEN_JSON_EXCEPTION); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.