Author: asankaa
Date: Fri Jan  9 00:49:02 2009
New Revision: 28551
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=28551

Log:
cacons 229


Modified:
   
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/filters/XPathBasedEventFilter.java

Modified: 
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/filters/XPathBasedEventFilter.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/filters/XPathBasedEventFilter.java?rev=28551&r1=28550&r2=28551&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/filters/XPathBasedEventFilter.java
       (original)
+++ 
branches/synapse/1.2.wso2v1/modules/core/src/main/java/org/apache/synapse/eventing/filters/XPathBasedEventFilter.java
       Fri Jan  9 00:49:02 2009
@@ -30,12 +30,12 @@
 
     private SynapseXPath sourceXpath;
     private String resultValue;
-
+    private static final String FILTER_SEP ="/";
     public boolean isSatisfied(MessageContext mc) {
         String evaluatedValue = sourceXpath.stringValueOf(mc);
         if (evaluatedValue.equals(resultValue)) {
             return true;
-        } else if (evaluatedValue.startsWith(resultValue)) {
+        } else if (evaluatedValue.startsWith((resultValue+FILTER_SEP).trim())) 
{
             return true;
         }
         return false;

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to