public abstract class AbstractRuleServiceAdminHandler extends Object implements RuleServiceAdminHandler
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
protected static org.apache.axiom.om.OMNamespace |
NULL_NS |
protected static org.apache.axiom.om.OMFactory |
OM_FACTORY |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRuleServiceAdminHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp(Paths paths)
Clean up the temp resources
|
protected String |
createServiceRepository(org.apache.axis2.engine.AxisConfiguration axisConfig)
Creates the rule services repository if there is no repository
|
protected org.apache.axiom.om.OMElement |
createXML(String serviceName,
File ruleFile)
Loads a file as an XML
|
protected String |
getServicePath(org.apache.axis2.engine.AxisConfiguration axisConfig,
String serviceName)
Returns the path to the rule service with the given name
|
protected String |
getTempDir()
Returns the working directory for rule services
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteFactArchive, deleteRuleFile, deleteTempRuleServiceDirectory, getAllFacts, getFactArchiveList, getRuleFileList, getRuleService, saveRuleService, uploadFacts, uploadRuleFile
protected org.apache.commons.logging.Log log
protected static final org.apache.axiom.om.OMFactory OM_FACTORY
protected static final org.apache.axiom.om.OMNamespace NULL_NS
protected String getTempDir()
protected String createServiceRepository(org.apache.axis2.engine.AxisConfiguration axisConfig) throws RuleServiceAdminException
axisConfig
- Axis2 Environment configurationRuleServiceAdminException
protected String getServicePath(org.apache.axis2.engine.AxisConfiguration axisConfig, String serviceName) throws RuleServiceAdminException
axisConfig
- Axis2 Environment configurationserviceName
- the name of the serviceRuleServiceAdminException
protected org.apache.axiom.om.OMElement createXML(String serviceName, File ruleFile) throws RuleServiceAdminException
serviceName
- name of the serviceruleFile
- file nameRuleServiceAdminException
protected void cleanUp(Paths paths)
paths
- contains the service path and temp directory path for the serviceCopyright © 2023 WSO2. All rights reserved.