|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.rule.ws.admin.AbstractRuleServiceAdminHandler
public abstract class AbstractRuleServiceAdminHandler
Base class for implementations of the RuleServiceAdminHandler. This contains a few common methods
| Field Summary | |
|---|---|
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
|
| Constructor Summary | |
|---|---|
protected |
AbstractRuleServiceAdminHandler()
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.wso2.carbon.rule.ws.admin.RuleServiceAdminHandler |
|---|
deleteFactArchive, deleteRuleFile, deleteTempRuleServiceDirectory, getAllFacts, getFactArchiveList, getRuleFileList, getRuleService, saveRuleService, uploadFacts, uploadRuleFile |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
protected AbstractRuleServiceAdminHandler()
| Method Detail |
|---|
protected String getTempDir()
protected String createServiceRepository(org.apache.axis2.engine.AxisConfiguration axisConfig)
throws RuleServiceAdminException
axisConfig - Axis2 Environment configuration
RuleServiceAdminException
protected String getServicePath(org.apache.axis2.engine.AxisConfiguration axisConfig,
String serviceName)
throws RuleServiceAdminException
axisConfig - Axis2 Environment configurationserviceName - the name of the service
RuleServiceAdminException
protected org.apache.axiom.om.OMElement createXML(String serviceName,
File ruleFile)
throws RuleServiceAdminException
serviceName - name of the serviceruleFile - file name
RuleServiceAdminExceptionprotected void cleanUp(Paths paths)
paths - contains the service path and temp directory path for the service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||