mirror of
https://github.com/apache/struts.git
synced 2026-08-06 15:17:00 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user