Class ApplicationSource
java.lang.Object
com.aeontronix.enhancedmule.tools.legacy.deploy.ApplicationSource
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
ExchangeApplicationSource,FileApplicationSource
public abstract class ApplicationSource extends Object implements Closeable
-
Field Summary
Fields Modifier and Type Field Description protected AnypointClientclient -
Constructor Summary
Constructors Constructor Description ApplicationSource(AnypointClient client) -
Method Summary
Modifier and Type Method Description voidcopyAPISpecs(String assetMainFile, com.aeontronix.commons.TempFile apiSpecFile)static ApplicationSourcecreate(String orgId, AnypointClient client, String path)abstract booleanexists()abstract ApplicationDescriptorgetAnypointDescriptor(APIProvisioningConfig apiProvisioningConfig)abstract StringgetArtifactId()abstract StringgetFileName()abstract FilegetLocalFile()abstract Map<String,Object>getSourceJson(JsonHelper jsonHelper)protected @Nullable ApplicationDescriptorreadDescriptorFromZip(File file, APIProvisioningConfig apiProvisioningConfig)
-
Field Details
-
Constructor Details
-
Method Details
-
getFileName
-
getLocalFile
- Throws:
IOException
-
exists
public abstract boolean exists() -
getAnypointDescriptor
public abstract ApplicationDescriptor getAnypointDescriptor(APIProvisioningConfig apiProvisioningConfig) throws IOException, HttpException- Throws:
IOExceptionHttpException
-
readDescriptorFromZip
@Nullable protected @Nullable ApplicationDescriptor readDescriptorFromZip(File file, APIProvisioningConfig apiProvisioningConfig) throws IOException- Throws:
IOException
-
getArtifactId
-
create
public static ApplicationSource create(String orgId, AnypointClient client, String path) throws IOException- Throws:
IOException
-
getSourceJson
-
copyAPISpecs
public void copyAPISpecs(String assetMainFile, com.aeontronix.commons.TempFile apiSpecFile) throws IOException- Throws:
IOException
-