Class ManagementAPIClient
java.lang.Object
org.eclipse.lemminx.customservice.synapse.mediator.tryout.server.ManagementAPIClient
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRequest.BodyPublisherbuildMultipartBody(String boundary, Path filePath) voidconnect()booleandeployCAPP(File capp) extractDeployedArtifacts(String jsonString) voidinit()
-
Constructor Details
-
ManagementAPIClient
public ManagementAPIClient()
-
-
Method Details
-
init
-
connect
- Throws:
InterruptedException
-
getDeployedCapps
- Throws:
IOExceptionInterruptedException
-
getArtifacts
public List<ManagementAPIClient.DeployedArtifact> getArtifacts(DeployedArtifactType type) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
extractDeployedArtifacts
public List<ManagementAPIClient.DeployedArtifact> extractDeployedArtifacts(String jsonString) throws IOException - Throws:
IOException
-
deployCAPP
-
buildMultipartBody
public static HttpRequest.BodyPublisher buildMultipartBody(String boundary, Path filePath) throws IOException - Throws:
IOException
-