Class SynapseArtifactUploaderUtil

java.lang.Object
org.wso2.carbon.mediation.artifactuploader.util.SynapseArtifactUploaderUtil

public class SynapseArtifactUploaderUtil extends Object
Utility cass for Synapse Artifact Uploader
  • Constructor Details

    • SynapseArtifactUploaderUtil

      public SynapseArtifactUploaderUtil()
  • Method Details

    • getArtifacts

      public static String[] getArtifacts(String extensionsPath)
      Returns Existing uploaded artifacts to Server
    • getFileExtension

      public static String getFileExtension(String fileName)
      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 removed
      targetDirectory - - target directory
      Returns:
      true if the destination file is copied to the target directory
      Throws:
      IOException