WW-3570 slot for debugging information in RPCResponse

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1068552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Lindal
2011-02-08 20:23:12 +00:00
parent 9ac1393e2d
commit 331b42cdcf
4 changed files with 12 additions and 0 deletions
@@ -27,6 +27,7 @@ public class RPCResponse {
private String id;
private Object result;
private RPCError error;
private String debug;
public String getId() {
return id;
@@ -51,4 +52,12 @@ public class RPCResponse {
public void setError(RPCError error) {
this.error = error;
}
public String getDebug() {
return debug;
}
public void setDebug(String debugInfo) {
this.debug = debug;
}
}
@@ -1,4 +1,5 @@
{
"debug":null,
"error":null,
"id":"2",
"result":null
@@ -1,4 +1,5 @@
{
"debug":null,
"error":null,
"id":"15",
"result": {
@@ -1,4 +1,5 @@
{
"debug": null,
"error": {
"code":100,
"message": "'method' is required for JSON RPC",