public class RestApiAdminUtils extends Object
Constructor and Description |
---|
RestApiAdminUtils() |
Modifier and Type | Method and Description |
---|---|
static APIData |
convertApiToAPIData(org.apache.synapse.api.API api) |
static org.apache.axiom.om.OMElement |
createAnonymousSequenceElement(org.apache.synapse.mediators.base.SequenceMediator sequenceMediator,
String seqElemName) |
static org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager |
getMediationPersistenceManager()
Helper method to get the persistence manger
|
static org.apache.synapse.config.SynapseConfiguration |
getSynapseConfiguration()
Override the parent's getSynapseconfig() method to retrieve the Synapse
configuration from the relevant axis configuration
|
static org.apache.synapse.core.SynapseEnvironment |
getSynapseEnvironment()
Helper method to retrieve the Synapse environment from the relevant axis configuration
|
static org.apache.synapse.core.SynapseEnvironment |
getSynapseEnvironment(org.apache.axis2.engine.AxisConfiguration axisCfg) |
static boolean |
isNullOrEmpty(String s) |
static void |
persistApi(org.apache.synapse.api.API api) |
static org.apache.axiom.om.OMElement |
retrieveAPIOMElement(APIData apiData) |
static org.apache.axiom.om.OMElement |
retrieveResourceOMElement(ResourceData resourceData) |
public static org.apache.axiom.om.OMElement retrieveAPIOMElement(APIData apiData)
public static org.apache.axiom.om.OMElement retrieveResourceOMElement(ResourceData resourceData)
public static org.apache.axiom.om.OMElement createAnonymousSequenceElement(org.apache.synapse.mediators.base.SequenceMediator sequenceMediator, String seqElemName)
public static org.apache.synapse.config.SynapseConfiguration getSynapseConfiguration() throws APIException
APIException
public static org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager getMediationPersistenceManager() throws APIException
APIException
public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment() throws APIException
APIException
public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment(org.apache.axis2.engine.AxisConfiguration axisCfg)
public static APIData convertApiToAPIData(org.apache.synapse.api.API api)
public static void persistApi(org.apache.synapse.api.API api) throws APIException
APIException
public static boolean isNullOrEmpty(String s)
Copyright © 2021 WSO2. All rights reserved.