public class EndpointTemplateStore extends AbstractStore<org.apache.synapse.endpoints.Template>
configPath, log, serializer| Constructor and Description |
|---|
EndpointTemplateStore(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.endpoints.Template template)
Inspect the given object and find the file name to which it should be
serialized to
|
protected org.apache.synapse.endpoints.Template |
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.endpoints.Template 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.endpoints.Template endpointTemplate)
Serialize the given object into XML
|
delete, handleException, saveprotected String getFileName(org.apache.synapse.endpoints.Template template)
AbstractStoregetFileName in class AbstractStore<org.apache.synapse.endpoints.Template>template - The object to be inspectedprotected org.apache.synapse.endpoints.Template getObjectToPersist(String name, org.apache.synapse.config.SynapseConfiguration config)
AbstractStoregetObjectToPersist in class AbstractStore<org.apache.synapse.endpoints.Template>name - Name or unique ID of the objectconfig - Current SynapseConfigurationprotected org.apache.axiom.om.OMElement saveToFile(org.apache.synapse.endpoints.Template template,
org.apache.synapse.config.SynapseConfiguration synapseConfig)
AbstractStoresaveToFile in class AbstractStore<org.apache.synapse.endpoints.Template>template - Object to be savedsynapseConfig - synapse configurationprotected org.apache.axiom.om.OMElement serialize(org.apache.synapse.endpoints.Template endpointTemplate)
AbstractStoreserialize in class AbstractStore<org.apache.synapse.endpoints.Template>endpointTemplate - The object to be serializedprotected void deleteFile(String fileName, org.apache.synapse.config.SynapseConfiguration synapseConfig)
AbstractStoredeleteFile in class AbstractStore<org.apache.synapse.endpoints.Template>fileName - Name of the file to be deletedsynapseConfig - synapse configurationCopyright © 2021 WSO2. All rights reserved.