public class RestApiAdminUtils extends Object
| Constructor and Description |
|---|
RestApiAdminUtils() |
| Modifier and Type | Method and Description |
|---|---|
static APIData |
convertApiToAPIData(org.apache.synapse.rest.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.rest.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
APIExceptionpublic static org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager getMediationPersistenceManager()
throws APIException
APIExceptionpublic static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment()
throws APIException
APIExceptionpublic static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment(org.apache.axis2.engine.AxisConfiguration axisCfg)
public static APIData convertApiToAPIData(org.apache.synapse.rest.API api)
public static void persistApi(org.apache.synapse.rest.API api)
throws APIException
APIExceptionpublic static boolean isNullOrEmpty(String s)
Copyright © 2018 WSO2. All rights reserved.