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 ApplicationIdentifierapplicationIdentifierprotected 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 com.fasterxml.jackson.databind.node.ObjectNodegetAnypointDescriptor()abstract ApplicationIdentifiergetApplicationIdentifier()StringgetArtifactId()abstract StringgetFileName()abstract FilegetLocalFile()abstract Map<String,Object>getSourceJson(JsonHelper jsonHelper)Set<String>listAPISpecFiles()protected com.fasterxml.jackson.databind.node.ObjectNodereadDescriptorFromZip(File file)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 com.fasterxml.jackson.databind.node.ObjectNode getAnypointDescriptor() throws IOException, HttpException- Throws:
IOExceptionHttpException
-
readDescriptorFromZip
@Nullable protected com.fasterxml.jackson.databind.node.ObjectNode readDescriptorFromZip(File file) throws IOException- Throws:
IOException
-
getArtifactId
-
getApplicationIdentifier
-
getSourceJson
-
listAPISpecFiles
- Specified by:
listAPISpecFilesin interfaceAPISpecSource- Throws:
IOException
-
writeAPISpecFile
- Specified by:
writeAPISpecFilein interfaceAPISpecSource- Throws:
IOException
-