synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-546) Use EndpointReference class helper methods instead of checking for each urls.
Date Mon, 11 May 2009 08:37:45 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi updated SYNAPSE-546:
-------------------------------------------------

    Attachment: patch.txt

attached the patch with the trunk. 
IMHO this should go to synapse 1.3 release as well.

> Use EndpointReference class helper methods instead of checking for each urls.
> -----------------------------------------------------------------------------
>
>                 Key: SYNAPSE-546
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-546
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Amila Chinthaka Suriarachchi
>         Attachments: patch.txt
>
>
> Synapse checks the annonymous endpoint references for nhttp transport with following
code.
> (msgContext.getTo() != null) &&
>                 !AddressingConstants.Submission.WSA_ANONYMOUS_URL.equals(
>                     msgContext.getTo().getAddress()) &&
>                 !AddressingConstants.Final.WSA_ANONYMOUS_URL.equals(
>                     msgContext.getTo().getAddress()))
> but it can simply write as 
> (msgContext.getTo() != null) && !msgContext.getTo().hasAnonymousAddress()) {
> Note that hasAnonymousAddress method checks  anonymousEquivalentURIs. RM 1.1 specification
uses such 
> private annonymous URI and this change is needed to work synapse with Sandesh2 RM 1.1.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message