synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kasun Indrasiri (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-716) Supporting Message Copying and Content Enriching with Enrich Mediator
Date Mon, 10 Jan 2011 05:09:45 GMT

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

Kasun Indrasiri updated SYNAPSE-716:
------------------------------------

    Attachment: enrich-mediator-j10.patch

> Supporting Message Copying and Content Enriching with Enrich Mediator
> ---------------------------------------------------------------------
>
>                 Key: SYNAPSE-716
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-716
>             Project: Synapse
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Kasun Indrasiri
>         Attachments: enrich-mediator-j10.patch
>
>
> It is often required to copy/replace message content from/with a specified source such
as a inline xml, localentry or a property. Also we need to store a given message to a property
or create a custom message from a given source. 
> Enrich Mediator can process a message based on a given source configuration and then
perform the specified action on the message by using the target configuration. It basically
gets an OMElement using the configuration specified in the source and then modify the message
by putting it on the current message using the configuration in the target.
> Syntax: 
> <enrich>
>        <source [clone=true|false] [type=custom|envelope|body|property|inline] xpath=""
property="" />
>        <target [action=replace|child|sibiling] [type=custom|envelope|body|property|inline]
xpath="" property="" />
>  </enrich>
> Enrich Mediator that is included in this patch facilitates these requirements.
> Use Cases
> ---------------
> 1. Copy Message Content to a Property
> - Portion of a message (using xpath) to property
> - SOAP Body to Property
> - SOAP Envelope to Property
> - SOAP Headers to Property
> - Inline XML to property
> - Resource content(local entries) to property
> 2. Enrich a message from a given source
> - Property to a portion of the Message Body (using xpath)
> - Property to SOAP Body
> - Property to Envelope
> - Property to SOAP Header
> 3. Message to Message (self enriching)
> - Content of message can be move/copy with in the same message.

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