You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Ruwan Linton <ru...@gmail.com> on 2006/09/19 04:41:44 UTC
Miss behaving functions in Synapse
Hi,
I have came accros the following misbehaving in the EndpointSerializer
class.
public static void serializeEndpoint(Endpoint endpt, OMElement parent) {
OMElement endpoint = fac.createOMElement("endpoint", synNS);
if (endpt.getAddress() != null) {
endpoint.addAttribute(fac.createOMAttribute(
"address", nullNS, endpt.getAddress().toString()));
} else {
handleException("Invalid Endpoint. Address is required");
}
// TODO handle advanced options
if (parent != null) {
parent.addChild(endpoint);
}
}
Although this method is a get method it dosent return anything (void), in
the implementation it declares an OMElement but doesnt return it.
I will put patch to correct this with a jira. Can someone apply that patch
please.
Thanks,
Ruwan.
Re: Miss behaving functions in Synapse
Posted by "Asankha C. Perera" <as...@wso2.com>.
Ruwan
Yes.. the Serialization classes may have a few issues, as Synapse
doesn't really invoke them directly (yet!). I will apply the patch :-)
thanks
asankha
Ruwan Linton wrote:
> Hi,
>
> I have came accros the following misbehaving in the EndpointSerializer
> class.
>
> public static void serializeEndpoint(Endpoint endpt, OMElement
> parent) {
>
> OMElement endpoint = fac.createOMElement ("endpoint", synNS);
> if (endpt.getAddress() != null) {
> endpoint.addAttribute(fac.createOMAttribute(
> "address", nullNS, endpt.getAddress().toString()));
> } else {
> handleException("Invalid Endpoint. Address is required");
> }
>
> // TODO handle advanced options
>
> if (parent != null) {
> parent.addChild(endpoint);
> }
> }
>
> Although this method is a get method it dosent return anything (void),
> in the implementation it declares an OMElement but doesnt return it.
>
> I will put patch to correct this with a jira. Can someone apply that
> patch please.
>
> Thanks,
> Ruwan.
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org