public class TemplateStore extends AbstractStore<org.apache.synapse.mediators.template.TemplateMediator>
configPath, log, serializer
Constructor and Description |
---|
TemplateStore(String configPath,
String configName) |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteFile(String fileName,
org.apache.synapse.config.SynapseConfiguration synapseConfig)
Delete the specified file from the persistence store.
|
protected String |
getFileName(org.apache.synapse.mediators.template.TemplateMediator template)
Inspect the given object and find the file name to which it should be
serialized to
|
protected org.apache.synapse.mediators.template.TemplateMediator |
getObjectToPersist(String name,
org.apache.synapse.config.SynapseConfiguration config)
Find the specified object from the SynaspeConfiguration to be saved to
the persistence store
|
protected org.apache.axiom.om.OMElement |
saveToFile(org.apache.synapse.mediators.template.TemplateMediator template,
org.apache.synapse.config.SynapseConfiguration synapseConfig)
Serialize and save the given object to the local file system
|
protected org.apache.axiom.om.OMElement |
serialize(org.apache.synapse.mediators.template.TemplateMediator sequence)
Serialize the given object into XML
|
delete, handleException, save
protected String getFileName(org.apache.synapse.mediators.template.TemplateMediator template)
AbstractStore
getFileName
in class AbstractStore<org.apache.synapse.mediators.template.TemplateMediator>
template
- The object to be inspectedprotected org.apache.synapse.mediators.template.TemplateMediator getObjectToPersist(String name, org.apache.synapse.config.SynapseConfiguration config)
AbstractStore
getObjectToPersist
in class AbstractStore<org.apache.synapse.mediators.template.TemplateMediator>
name
- Name or unique ID of the objectconfig
- Current SynapseConfigurationprotected org.apache.axiom.om.OMElement saveToFile(org.apache.synapse.mediators.template.TemplateMediator template, org.apache.synapse.config.SynapseConfiguration synapseConfig)
AbstractStore
saveToFile
in class AbstractStore<org.apache.synapse.mediators.template.TemplateMediator>
template
- Object to be savedsynapseConfig
- synapse configurationprotected org.apache.axiom.om.OMElement serialize(org.apache.synapse.mediators.template.TemplateMediator sequence)
AbstractStore
serialize
in class AbstractStore<org.apache.synapse.mediators.template.TemplateMediator>
sequence
- The object to be serializedprotected void deleteFile(String fileName, org.apache.synapse.config.SynapseConfiguration synapseConfig)
AbstractStore
deleteFile
in class AbstractStore<org.apache.synapse.mediators.template.TemplateMediator>
fileName
- Name of the file to be deletedsynapseConfig
- synapse configurationCopyright © 2018 WSO2. All rights reserved.