You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Supun Kamburugamuva (JIRA)" <ji...@apache.org> on 2009/10/13 09:51:31 UTC

[jira] Created: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Adding a new mediator to extract string from properties using regular expressions
---------------------------------------------------------------------------------

                 Key: SYNAPSE-591
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
             Project: Synapse
          Issue Type: Improvement
            Reporter: Supun Kamburugamuva


It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Updated: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Kamburugamuva updated SYNAPSE-591:
----------------------------------------

    Attachment: SYNAPSE-591.patch

Attaching a patch

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Commented: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774635#action_12774635 ] 

Supun Kamburugamuva commented on SYNAPSE-591:
---------------------------------------------

Hi Indika,

Thanks for looking at the patch. I originally improve the property mediator. That was my initial idea. Then when I submit the patch and didn't get any constructive response. It seemed like synapse community is too lazy to response or doesn't care to find a solution. 

Then I submitted this new patch. With the new mediator. My thought was if synapse doesn't like to improve anything, at least it will like to add something new :)

Anyway I think both approaches are valid and have their own points and it is the perspective that matters. 

For example in a unix like system small functional components are combined to create complex functionality. But in some other cases wide range of functionalities are combined to form one unit.

Thanks,
Supun,,   

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Commented: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765114#action_12765114 ] 

Supun Kamburugamuva commented on SYNAPSE-591:
---------------------------------------------

This issue is related to SYNAPSE-588. Instead of adding extending property mediator, this mediator introduce that functionality separately.

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Commented: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774637#action_12774637 ] 

Supun Kamburugamuva commented on SYNAPSE-591:
---------------------------------------------

One other point is I can introduce a xpath function for doing the same thing. But introducing a XPath for doing something directly supported by Java has a performance hit and seems like over doing it. In any case I will create the XPath function. Then people who wants to use it inside property mediator can do it.

Thanks,
Supun...

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Commented: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774765#action_12774765 ] 

indika priyantha kumara commented on SYNAPSE-591:
-------------------------------------------------

yes Supun............Usually, dividing the system functionality into orthogonal and reusable functionalities is doing in many systems. if there is flexibility to recombine divided primitive functionalities in different ways to form different meaningful functionalities , then, the functional decomposition of the components / system may improve the adaptability of the system. The flexibility is a key factor that decide the success of the functional decomposition. Applying such a  functional decomposition to the property mediator, may be useful. I feels that new mediator based approach is an initial step but not complete.  I think it is better to apply your patch for extending property mediator (SYNAPSE-588 ) now, and at future , with a good a discussion , you may be able to do the  functional decomposition of the property mediator or many components. 

For the XPath function, you may be able to extend existing get-property functions, although I didn't check the feasibility for doing so. 

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Commented: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "Ruwan Linton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838505#action_12838505 ] 

Ruwan Linton commented on SYNAPSE-591:
--------------------------------------

Supun, isn't this supported with the property mediator fixes that we have done??

Thanks,
Ruwan

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Resolved: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "Supun Kamburugamuva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Supun Kamburugamuva resolved SYNAPSE-591.
-----------------------------------------

    Resolution: Duplicate

This is the exact feature that we've introduced to the property mediator. So I'm resolving the issue.

Thanks,
Supun..

> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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


[jira] Commented: (SYNAPSE-591) Adding a new mediator to extract string from properties using regular expressions

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774604#action_12774604 ] 

indika priyantha kumara commented on SYNAPSE-591:
-------------------------------------------------

Supun... What is the patch to use?  SYNAPSE-588 or this one.  And any reasons for the selection. 

It is widely acknowledged that the responsibility driven design and the separation of the orthogonal functionality as good design principles. You can easily see these things if you look at the public and highly used API of popular languages such as Java, C#. A simple example is reader/ writer ... When applying these things to the property mediator, I feel the separation of set property, and remove property mediator may be good at least from the design perspective.   

However, in your mediator, it only does the filtering out of the value to be set.  In other word, it enhances the set functionality. So ... What is the suitable approach?  


> Adding a new mediator to extract string from properties using regular expressions
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-591
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-591
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Supun Kamburugamuva
>         Attachments: SYNAPSE-591.patch
>
>
> It will be really useful if we can extract strings from properties based on regular expressions and apply them to another property.

-- 
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