public class LibDeployerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APP_UNZIP_DIR |
Constructor and Description |
---|
LibDeployerUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createDir(String path) |
static Library |
createSynapseLibrary(String libPath) |
static String |
extractSynapseLib(String libPath)
Extract the Synapse Library at the provided path to the java temp dir.
|
static String |
formatPath(String path)
Format the string paths to match any platform..
|
static <T> T |
getLibArtifact(Map<String,Library> librarySet,
String key,
Class<T> type) |
static String |
getQualifiedName(SynapseImport synImport) |
static void |
loadLibArtifacts(SynapseImport synImport,
Library library) |
static void |
main(String[] args) |
static String |
readAttribute(org.apache.axiom.om.OMElement element,
String attName)
Reads an attribute in the given element and returns the value of that attribute
|
static String |
readChildText(org.apache.axiom.om.OMElement element,
String ln) |
static String |
readChildText(org.apache.axiom.om.OMElement element,
String ln,
String ns)
Reads a text node which is in a child element of the given element and returns the text
value.
|
public static final String APP_UNZIP_DIR
public static void loadLibArtifacts(SynapseImport synImport, Library library)
public static <T> T getLibArtifact(Map<String,Library> librarySet, String key, Class<T> type)
public static String getQualifiedName(SynapseImport synImport)
public static String readAttribute(org.apache.axiom.om.OMElement element, String attName)
element
- - Element to searchattName
- - attribute namepublic static String readChildText(org.apache.axiom.om.OMElement element, String ln, String ns)
element
- - Element to searchln
- - Child element namens
- - Child element namespacepublic static String extractSynapseLib(String libPath) throws SynapseException
libPath
- - Absolute path of the Synapse Lib archive fileSynapseException
- - error on extractionpublic static String formatPath(String path)
path
- - input file pathpublic static void createDir(String path)
public static void main(String[] args)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.