You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/11/23 14:09:03 UTC
svn commit: r478559 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Handler.java
Author: davidillsley
Date: Thu Nov 23 05:09:02 2006
New Revision: 478559
URL: http://svn.apache.org/viewvc?view=rev&rev=478559
Log:
Commit patch from Matt for AXIS2-1764
Improve output when tracing InvocationReponse objects
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Handler.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Handler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Handler.java?view=diff&rev=478559&r1=478558&r2=478559
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Handler.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Handler.java Thu Nov 23 05:09:02 2006
@@ -105,15 +105,17 @@
*/
public class InvocationResponse
{
- public static InvocationResponse CONTINUE = new InvocationResponse(0);
- public static InvocationResponse SUSPEND = new InvocationResponse(1);
- public static InvocationResponse ABORT = new InvocationResponse(2);
+ public static InvocationResponse CONTINUE = new InvocationResponse(0, "InvocationResponse.CONTINUE");
+ public static InvocationResponse SUSPEND = new InvocationResponse(1, "InvocationResponse.SUSPEND");
+ public static InvocationResponse ABORT = new InvocationResponse(2, "InvocationResponse.ABORT");
private int instructionID;
+ private String description;
- private InvocationResponse(int instructionID)
+ private InvocationResponse(int instructionID, String description)
{
this.instructionID = instructionID;
+ this.description = description;
}
public boolean equals(InvocationResponse instruction)
@@ -124,6 +126,10 @@
public int hashCode()
{
return instructionID;
+ }
+
+ public String toString() {
+ return description;
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org