Class ExchangeClient
- java.lang.Object
-
- org.mule.weave.maven.plugin.client.RestClient
-
- org.mule.weave.maven.plugin.exchange.client.ExchangeClient
-
public class ExchangeClient extends RestClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExchangeClient.Builder
-
Constructor Summary
Constructors Constructor Description ExchangeClient(String baseAnypointUrl, String username, String password, ExchangeClientLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBearerToken()voidpublishPortal(String groupId, String artifactId, String version)voidupdateAsset(String groupId, String artifactId, String name, String description)voidupdateFavicon(String groupId, String artifactId, Optional<File> maybeFavicon)voiduploadDrafts(File docsFolder, String groupId, String artifactId, String version)voiduploadPortalPages(File docsFolder, org.apache.maven.project.MavenProject project, Optional<File> maybeFavicon)-
Methods inherited from class org.mule.weave.maven.plugin.client.RestClient
checkResponseSuccessfulStatus, encodeUtf8, patch, patch, post, post, post, postFormUrlEncoded, postFormUrlEncoded, put
-
-
-
-
Field Detail
-
PROD_ENV
public static final String PROD_ENV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExchangeClient
public ExchangeClient(String baseAnypointUrl, String username, String password, ExchangeClientLogger logger)
-
-
Method Detail
-
getBearerToken
public String getBearerToken()
-
uploadPortalPages
public void uploadPortalPages(File docsFolder, org.apache.maven.project.MavenProject project, Optional<File> maybeFavicon)
-
uploadDrafts
public void uploadDrafts(File docsFolder, String groupId, String artifactId, String version)
-
updateAsset
public void updateAsset(String groupId, String artifactId, String name, String description)
-
-