Class ApplicationSource
java.lang.Object
com.aeontronix.enhancedmule.tools.legacy.deploy.ApplicationSource
- All Implemented Interfaces:
APISpecSource,Closeable,AutoCloseable
- Direct Known Subclasses:
ExchangeApplicationSource,FileApplicationSource
public abstract class ApplicationSource extends Object implements APISpecSource, 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 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)Set<String>listAPISpecFiles()protected @Nullable ApplicationDescriptorreadDescriptorFromZip(File file, APIProvisioningConfig apiProvisioningConfig)voidwriteAPISpecFile(String name, OutputStream os)
-
Field Details
-
Constructor Details
-
Method Details
-
create
public static ApplicationSource create(String orgId, AnypointClient client, String path) throws IOException- Throws:
IOException
-
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
-
getSourceJson
-
listAPISpecFiles
- Specified by:
listAPISpecFilesin interfaceAPISpecSource- Throws:
IOException
-
writeAPISpecFile
- Specified by:
writeAPISpecFilein interfaceAPISpecSource- Throws:
IOException
-