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

Ruwan Linton reassigned SYNAPSE-546:
------------------------------------

    Assignee: Ruwan Linton

> 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
>            Assignee: Ruwan Linton
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to