Class SynapseArtifactInitUtils
java.lang.Object
org.wso2.carbon.mediation.initializer.utils.SynapseArtifactInitUtils
Utility class containing util functions to initialize synapse artifacts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic StringextractConnector(String connectorPath) Extract the connector at the provided path to the java temp dir.static StringformatPath(String path) Format the string paths to match any platform..static Stringstatic voidinitializeConnectors(org.apache.axis2.engine.AxisConfiguration axisConfiguration) Function to create synapse imports to enable installed connectors
-
Constructor Details
-
SynapseArtifactInitUtils
public SynapseArtifactInitUtils()
-
-
Method Details
-
getAppUnzipDir
-
initializeConnectors
public static void initializeConnectors(org.apache.axis2.engine.AxisConfiguration axisConfiguration) Function to create synapse imports to enable installed connectors- Parameters:
axisConfiguration- axis configuration
-
extractConnector
Extract the connector at the provided path to the java temp dir. Return the extracted location- Parameters:
connectorPath- - Absolute path of the Carbon application .car file- Returns:
- - extracted location
- Throws:
org.wso2.carbon.CarbonException- - error on extractionIOException
-
createDir
-
formatPath
Format the string paths to match any platform.. windows, linux etc..- Parameters:
path- - input file path- Returns:
- formatted file path
-