[Mashup-dev] [WSRequest]Issue regarding read-only properties
Saliya Ekanayake
saliya at wso2.com
Tue Jan 23 03:20:07 PST 2007
Hi All,
I've implemented WSRequest API
(http://wso2.org/wiki/display/wsfajax/wsrequest_specification) using
Rhino and Axis2/Java. The API defines responseText and responseXML as
read-only properties. But if I include these two properties as
this.responseXML and this.responseText inside the WSRequest constructor
of my implementation script then they will not be read-only.
Defining them as two private variables and giving two getter methods to
access them is the solution I have used. However, then my implementation
would deviate from the API due to the presence of two getter methods.
So can somebody suggest me a better solution regarding this issue?
regards,
Saliya Ekanayake
saliya at wso2.com
More information about the Mashup-dev
mailing list