public class SynapseConfigAdminClient extends Object
| Constructor and Description |
|---|
SynapseConfigAdminClient(String backEndUrl,
String sessionCookie) |
SynapseConfigAdminClient(String backEndUrl,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateService(String serviceName)
Activating service
|
void |
addExistingConfiguration(String serviceName)
Adding more configuration to the existing service
|
void |
create(String serviceName,
String description)
Create synapse configuration
|
void |
deleteConfiguration(String serviceName)
Deleting synapse configuration
|
String |
getConfiguration()
Get current synapse configuration
|
org.wso2.carbon.mediation.configadmin.stub.types.carbon.ConfigurationInformation[] |
getConfigurationList()
Get current configuration List
|
void |
saveConfigurationToDisk()
Save Synapse configuration
|
boolean |
updateConfiguration(File file)
Update Synapse configuration using a File object that contains the new configuration.
|
boolean |
updateConfiguration(org.apache.axiom.om.OMElement configuration)
update synapse configuration using a OMElement object that contains the new configuration.
|
boolean |
updateConfiguration(String configuration)
Update Synapse configuration using a String that contains the new configuration.
|
org.wso2.carbon.mediation.configadmin.stub.types.carbon.ValidationError[] |
validateConfiguration(org.apache.axiom.om.OMElement configuration)
Validate synapse configuration using a OMElement
|
public SynapseConfigAdminClient(String backEndUrl, String sessionCookie) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void activateService(String serviceName) throws RemoteException
serviceName - - service name need to be activatedRemoteException - for the activate() method call in ConfigServiceAdminStubpublic void addExistingConfiguration(String serviceName) throws RemoteException
serviceName - - service nameRemoteException - for the addExistingConfiguration() method call in ConfigServiceAdminStubpublic void create(String serviceName, String description) throws RemoteException
serviceName - - service namedescription - - service descriptionRemoteException - for the create() method call in ConfigServiceAdminStubpublic void deleteConfiguration(String serviceName) throws RemoteException
serviceName - - service nameRemoteException - for the deleteConfiguration() method call in ConfigServiceAdminStubpublic String getConfiguration() throws RemoteException
RemoteException - for the getConfiguration() method call in ConfigServiceAdminStubpublic org.wso2.carbon.mediation.configadmin.stub.types.carbon.ConfigurationInformation[] getConfigurationList()
throws RemoteException
RemoteException - for the getConfigurationList() method call in ConfigServiceAdminStubpublic void saveConfigurationToDisk()
throws RemoteException
RemoteException - for the saveConfigurationToDisk() method call in ConfigServiceAdminStubpublic boolean updateConfiguration(String configuration) throws XMLStreamException, RemoteException
configuration - - synapse configurationRemoteException - for the updateConfiguration() method call in ConfigServiceAdminStubXMLStreamException - for the updateConfiguration() method call in ConfigServiceAdminStubpublic boolean updateConfiguration(File file) throws IOException, SAXException, ParserConfigurationException, TransformerException, XMLStreamException
file - - File that contains the synapse configurationIOException - for the updateConfiguration() method call in ConfigServiceAdminStub and
parse() method call in DocumentBuilderSAXException - for the parse() method call in DocumentBuilderParserConfigurationException - for the newDocumentBuilder() method call in DocumentBuilderFactoryTransformerException - for the getStringFromDocument() method callXMLStreamException - for the updateConfiguration() method call in ConfigServiceAdminStubpublic boolean updateConfiguration(org.apache.axiom.om.OMElement configuration)
throws RemoteException
configuration - - synapse configurationRemoteException - for the updateConfiguration() method call in ConfigServiceAdminStubpublic org.wso2.carbon.mediation.configadmin.stub.types.carbon.ValidationError[] validateConfiguration(org.apache.axiom.om.OMElement configuration)
throws RemoteException
configuration - - synapse configurationRemoteException - for the validateConfiguration() method call in ConfigServiceAdminStubCopyright © 2018 WSO2 Inc. All rights reserved.