Class TemplateContext
- java.lang.Object
-
- org.apache.synapse.mediators.template.TemplateContext
-
public class TemplateContext extends Object
This class will store runtime context of a synapse function template. For each invoked Template a context will be populated with function parameters.
-
-
Constructor Summary
Constructors Constructor Description TemplateContext(String name, Collection<TemplateParam> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalEntryKey()
Map
getMappedValues()
String
getName()
Collection
getParameters()
Object
getParameterValue(String paramName)
void
setLocalEntryKey(String localEntryKey)
void
setMappedValues(Map map)
void
setupParams(MessageContext synCtxt)
evaluate raw parameters passed from an invoke medaiator and store them in this context
-
-
-
Constructor Detail
-
TemplateContext
public TemplateContext(String name, Collection<TemplateParam> parameters)
-
-
Method Detail
-
setupParams
public void setupParams(MessageContext synCtxt)
evaluate raw parameters passed from an invoke medaiator and store them in this context- Parameters:
synCtxt
- Synapse MessageContext
-
getMappedValues
public Map getMappedValues()
-
getLocalEntryKey
public String getLocalEntryKey()
-
setLocalEntryKey
public void setLocalEntryKey(String localEntryKey)
-
setMappedValues
public void setMappedValues(Map map)
-
getName
public String getName()
-
getParameters
public Collection getParameters()
-
-