Package org.wso2.carbon.rest.api
Class RestApiAdminUtils
java.lang.Object
org.wso2.carbon.rest.api.RestApiAdminUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic APIDataconvertApiToAPIData(org.apache.synapse.api.API api) static org.apache.axiom.om.OMElementcreateAnonymousSequenceElement(org.apache.synapse.mediators.base.SequenceMediator sequenceMediator, String seqElemName) static org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManagerHelper method to get the persistence mangerstatic org.apache.synapse.config.SynapseConfigurationOverride the parent's getSynapseconfig() method to retrieve the Synapse configuration from the relevant axis configurationstatic org.apache.synapse.core.SynapseEnvironmentHelper method to retrieve the Synapse environment from the relevant axis configurationstatic org.apache.synapse.core.SynapseEnvironmentgetSynapseEnvironment(org.apache.axis2.engine.AxisConfiguration axisCfg) static booleanstatic voidpersistApi(org.apache.synapse.api.API api) static org.apache.axiom.om.OMElementretrieveAPIOMElement(APIData apiData) static org.apache.axiom.om.OMElementretrieveResourceOMElement(ResourceData resourceData)
-
Constructor Details
-
RestApiAdminUtils
public RestApiAdminUtils()
-
-
Method Details
-
retrieveAPIOMElement
-
retrieveResourceOMElement
-
createAnonymousSequenceElement
public static org.apache.axiom.om.OMElement createAnonymousSequenceElement(org.apache.synapse.mediators.base.SequenceMediator sequenceMediator, String seqElemName) -
getSynapseConfiguration
public static org.apache.synapse.config.SynapseConfiguration getSynapseConfiguration() throws APIExceptionOverride the parent's getSynapseconfig() method to retrieve the Synapse configuration from the relevant axis configuration- Returns:
- extracted SynapseConfiguration from the relevant AxisConfiguration
- Throws:
APIException
-
getMediationPersistenceManager
public static org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager getMediationPersistenceManager() throws APIExceptionHelper method to get the persistence manger- Returns:
- persistence manager for this configuration context
- Throws:
APIException
-
getSynapseEnvironment
public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment() throws APIExceptionHelper method to retrieve the Synapse environment from the relevant axis configuration- Returns:
- extracted SynapseEnvironment from the relevant AxisConfiguration
- Throws:
APIException
-
getSynapseEnvironment
public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment(org.apache.axis2.engine.AxisConfiguration axisCfg) -
convertApiToAPIData
-
persistApi
- Throws:
APIException
-
isNullOrEmpty
-