Package com.eka.middleware.pub.util
Class ImportSwagger
java.lang.Object
com.eka.middleware.pub.util.ImportSwagger
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
asClientLib
(String folderPath, byte[] openAPI, com.eka.middleware.service.DataPipeline dataPipeline) asServerStub
(String folderPath, byte[] openAPI, com.eka.middleware.service.DataPipeline dataPipeline, Boolean isClientRequested, String packageName) createCase
(List<Object> parent, String serviceFqn, String comment) createDocument
(String name, List<Object> list, String description) createDocumentList
(String name, List<Object> list, String description) static void
createMapping
(Map<String, Object> mapStep, String op, String inTypePath, String from, String outTypePath, String to) createMapStep
(List<Object> parent, String comment) static void
createPostInvokeMapping
(Map<String, Object> mapStep, String op, String inTypePath, String from, String outTypePath, String to) static void
createPreInvokeMapping
(Map<String, Object> mapStep, String op, String inTypePath, String from, String outTypePath, String to) static void
createVariables
(Map<String, Object> mapStep, String path, String value, ImportSwagger.Evaluate evaluate, String typePath) static void
static String
encodeBas64
(String value) static void
generateJavaClass
(File file, String flowRef, com.eka.middleware.service.DataPipeline dataPipeline, String fqn, String alias)
-
Constructor Details
-
ImportSwagger
public ImportSwagger()
-
-
Method Details
-
asServerStub
public static Map<String,String> asServerStub(String folderPath, byte[] openAPI, com.eka.middleware.service.DataPipeline dataPipeline, Boolean isClientRequested, String packageName) throws Exception - Throws:
Exception
-
asClientLib
public static Map<String,String> asClientLib(String folderPath, byte[] openAPI, com.eka.middleware.service.DataPipeline dataPipeline) throws Exception - Throws:
Exception
-
createDocument
-
createDocumentList
-
createMapStep
-
createInvokeStep
-
createSwitch
public static Map<String,Object> createSwitch(List<Object> parent, String serviceType, String serviceFqn, String comment) - Parameters:
parent
-serviceType
-serviceFqn
-comment
-- Returns:
-
createCase
- Parameters:
parent
-serviceFqn
-comment
-- Returns:
-
createVariables
public static void createVariables(Map<String, Object> mapStep, String path, String value, ImportSwagger.Evaluate evaluate, String typePath) - Parameters:
mapStep
-path
-value
-evaluate
-typePath
-
-
dropVariables
- Parameters:
mapStep
-path
-typePath
-
-
createMapping
-
createPreInvokeMapping
-
createPostInvokeMapping
-
addChildren
-
addData
- Parameters:
map
-key
-value
-
-
encodeBas64
-
generateJavaClass
public static void generateJavaClass(File file, String flowRef, com.eka.middleware.service.DataPipeline dataPipeline, String fqn, String alias) throws Exception - Throws:
Exception
-