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] Created: (SYNAPSE-546) Use EndpointReference class helper methods instead of checking for each urls.
Date Mon, 11 May 2009 08:35:46 GMT
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


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