You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/05/16 13:14:43 UTC
svn commit: r406910 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl
Author: dims
Date: Tue May 16 04:14:41 2006
New Revision: 406910
URL: http://svn.apache.org/viewcvs?rev=406910&view=rev
Log:
Fix for AXIS2-727 - Inconsistency in generated Callback handler
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl?rev=406910&r1=406909&r2=406910&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl Tue May 16 04:14:41 2006
@@ -10,10 +10,10 @@
package <xsl:value-of select="@package"/>;
/**
- * <xsl:value-of select="@name"/> Callback class
+ * <xsl:value-of select="@name"/> Callback class, Users can extend this class and implement
+ * their own receiveResult and receiveError methods.
*/
-
- public abstract class <xsl:value-of select="@name"/>{
+ public abstract class <xsl:value-of select="@name"/> {
@@ -30,6 +30,13 @@
this.clientData = clientData;
}
+ /**
+ * Get the client data
+ */
+
+ public Object getClientData() {
+ return clientData;
+ }
<xsl:for-each select="method">
<xsl:variable name="outParamType"><xsl:value-of select="output/param/@type"/></xsl:variable>
@@ -45,7 +52,6 @@
*/
public void receiveResult<xsl:value-of select="@name"/>(
<xsl:if test="$outParamType!=''"><xsl:value-of select="$outParamType"/><xsl:text> </xsl:text><xsl:value-of select="$outParamName"/></xsl:if>) {
- //Fill here with the code to handle the response
}
/**
@@ -53,7 +59,6 @@
*
*/
public void receiveError<xsl:value-of select="@name"/>(java.lang.Exception e) {
- //Fill here with the code to handle the exception
}
</xsl:when>
<xsl:otherwise>