Author: hiranya
Date: Wed Nov 11 04:34:21 2009
New Revision: 834763
URL: http://svn.apache.org/viewvc?rev=834763&view=rev
Log:
Documentation for the type support available in the property medaitor
Modified:
synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml
Modified: synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml
URL:
http://svn.apache.org/viewvc/synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml?rev=834763&r1=834762&r2=834763&view=diff
==============================================================================
--- synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml
(original)
+++ synapse/branches/1.3/src/site/xdoc/Synapse_Configuration_Language.xml Wed
Nov 11 04:34:21 2009
@@ -1143,7 +1143,9 @@
<h4>
<a name="property" id="property">Property</a>
</h4>
-<pre xml:space="preserve"> <property name="string" [action=set|remove]
(value="literal" | expression="xpath")
[scope=transport|axis2|axis2-client]/></pre>
+<pre xml:space="preserve"> <property name="string" [action=set|remove]
[type="string"] (value="literal" | expression="xpath")
[scope=transport|axis2|axis2-client]>
+ <xml-element/>?
+</property></pre>
<p>
The property token refers to a <property> element which is a
mediator that has no direct impact on the message but rather on the
@@ -1157,6 +1159,36 @@
existing message context properties.
</p>
<p>
+ Using the type attribute one can set properties with specific types on
+ the message context. Currently the type attribute accepts following
+ data types.
+ </p>
+ <ul>
+ <li>STRING</li>
+ <li>BOOLEAN</li>
+ <li>DOUBLE</li>
+ <li>FLOAT</li>
+ <li>INTEGER</li>
+ <li>LONG</li>
+ <li>SHORT</li>
+ <li>OM</li>
+ </ul>
+ <p>
+ The type names are case sensitive. If a type is not explicitly specified
+ properties will be set as string values. Type 'OM' can be used to set XML
+ property values on the message context. This becomes useful when the
expression
+ associated with the property mediator evaluates to an XML value during
mediation.
+ With the type attribute set to 'OM' the resulting XML will be converted
to
+ an AXIOM OMElement before setting it to the message context.
+ </p>
+ <p>
+ You can use the property mediator to set fixed XML property values on the
+ message context too. To do that instead of specifying a 'value' attribute
+ specify the XML property value as a child element of the property
element.
+ The type attribute has no significance in this situation as the type of
the
+ property value is always 'OM'.
+ </p>
+ <p>
There are some well-defined properties that you can get/set on the
Synapse
message context scope:
</p>