Package org.wso2.carbon.ui
Class Utils
java.lang.Object
org.wso2.carbon.ui.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyDirectory(File sourceLocation, File targetLocation) static booleanDeletes all files and subdirectories under dir.static voiddeployZipFile(File zipFileLocation, File targetLocation) Deprecated.Inputs provided to this method are not validated.static StringRead context name from carbon.xml "carbon" will be the default valuestatic voidtransform(InputStream xmlStream, InputStream xslStream, OutputStream outputStream)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
transform
public static void transform(InputStream xmlStream, InputStream xslStream, OutputStream outputStream) throws TransformerException - Throws:
TransformerException
-
copyDirectory
- Throws:
IOException
-
deployZipFile
@Deprecated public static void deployZipFile(File zipFileLocation, File targetLocation) throws org.wso2.carbon.CarbonException Deprecated.Inputs provided to this method are not validated. Therefore, this method is deprecated and will be removed in a future release.For a given Zip file, process each entry.- Parameters:
zipFileLocation- zipFileLocationtargetLocation- targetLocation
-
deleteDir
Deletes all files and subdirectories under dir. Returns true if all deletions were successful. If a deletion fails, the method stops attempting to delete and returns false.- Parameters:
dir- directory to delete- Returns:
- status
-
getWebContextName
Read context name from carbon.xml "carbon" will be the default value- Returns:
- webcontext name
-