Class Axis2RepoManager

java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.repomanager.axis2.Axis2RepoManager

public class Axis2RepoManager extends org.wso2.carbon.core.AbstractAdmin
Axis2 repository manager Admin service
  • Constructor Details

    • Axis2RepoManager

      public Axis2RepoManager()
  • Method Details

    • getDirectoryStructure

      public DirectoryStructureMetaData getDirectoryStructure() throws org.json.JSONException
      Throws:
      org.json.JSONException
    • uploadArtifact

      public boolean uploadArtifact(Axis2ArtifactUploadData[] artifactUploadDataList, String fileUploadDir) throws IOException
      Parameters:
      artifactUploadDataList - List containing the Axis2 archive files that are to be uploaded
      fileUploadDir - The name of the directory to upload the atrifacts
      Returns:
      The status of the artifact upload process
      Throws:
      IOException - Thrown if an error occurs while uploading the files
    • deleteLib

      public boolean deleteLib(String libPath) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • restartAxis2Server

      public boolean restartAxis2Server() throws org.apache.axis2.AxisFault
      This method is used to restart the Axis2 server after an artifact has been uploaded. This method is invoked via the management console.
      Returns:
      The status of the Axis2 server restart success/failure
      Throws:
      org.apache.axis2.AxisFault - If restarting the server in case of a super tenant reload request fails
    • downloadArtifact

      public DataHandler downloadArtifact(String filePath)
      Downloads the relevant artifacts from the repository
      Parameters:
      filePath - path to the artifacts that should be downloaded, relative to the tenants repository
      Returns:
      the datahandler corresponding to the artifact that should be downloaded