Class SynapseArtifactUploaderUtil
java.lang.Object
org.wso2.carbon.mediation.artifactuploader.util.SynapseArtifactUploaderUtil
Utility cass for Synapse Artifact Uploader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getArtifacts(String extensionsPath) Returns Existing uploaded artifacts to Serverstatic StringgetFileExtension(String fileName) Finds the extension of a given filestatic booleanvalidateFilePath(File destinationFile, File targetDirectory) Validates whether the destinationFile is copied to the target directory
-
Constructor Details
-
SynapseArtifactUploaderUtil
public SynapseArtifactUploaderUtil()
-
-
Method Details
-
getArtifacts
Returns Existing uploaded artifacts to Server -
getFileExtension
Finds the extension of a given file- Parameters:
fileName- - name of the file- Returns:
- - extension
-
validateFilePath
public static boolean validateFilePath(File destinationFile, File targetDirectory) throws IOException Validates whether the destinationFile is copied to the target directory- Parameters:
destinationFile- - file to be uploaded or removedtargetDirectory- - target directory- Returns:
- true if the destination file is copied to the target directory
- Throws:
IOException
-