Class Target
- java.lang.Object
-
- org.apache.synapse.mediators.bean.Target
-
public class Target extends Object
Represents a Target. Handles both static property names and dynamic(XPath) keys.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsert(MessageContext synCtx, Object object)Inserts the given object into the target specified by the current Target object.org.apache.axiom.om.OMElementserializeTarget(String attributeName, org.apache.axiom.om.OMElement element)Serialized this Target object into the given element with the given attribute name.
-
-
-
Constructor Detail
-
Target
public Target(String attributeName, org.apache.axiom.om.OMElement element)
Creates a new Target from the OMElement- Parameters:
attributeName- Name of the attribute where the property name/ XPath expression is stored.element- OMElement where the the XPath expression and the namespaces are stored.
-
-
Method Detail
-
insert
public void insert(MessageContext synCtx, Object object)
Inserts the given object into the target specified by the current Target object.- Parameters:
synCtx- Message Context to be enriched with the object.object- Object to be inserted.
-
serializeTarget
public org.apache.axiom.om.OMElement serializeTarget(String attributeName, org.apache.axiom.om.OMElement element)
Serialized this Target object into the given element with the given attribute name.- Parameters:
attributeName- Name of the attribute.element- Element to serialize this target in to.- Returns:
- Element after serializing this target.
-
-