Class RestDslGenerator<G>
- java.lang.Object
-
- org.apache.camel.generator.swagger.RestDslGenerator<G>
-
- Direct Known Subclasses:
RestDslDefinitionGenerator,RestDslSourceCodeGenerator,RestDslXmlGenerator
public abstract class RestDslGenerator<G> extends Object
Source code andRestsDefinitiongenerator that generates Camel REST DSL implementations from Swagger (OpenAPI) specifications.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GasSpringBootProject()GasSpringComponent()static RestDslSourceCodeGenerator<Appendable>toAppendable(io.swagger.models.Swagger swagger)static RestDslDefinitionGeneratortoDefinition(io.swagger.models.Swagger swagger)static RestDslSourceCodeGenerator<Filer>toFiler(io.swagger.models.Swagger swagger)static RestDslSourceCodeGenerator<Path>toPath(io.swagger.models.Swagger swagger)static RestDslXmlGeneratortoXml(io.swagger.models.Swagger swagger)GwithApiContextPath(String contextPath)GwithClientRequestValidation()GwithDestinationGenerator(DestinationGenerator directRouteGenerator)GwithOperationFilter(String include)GwithOperationFilter(org.apache.camel.generator.swagger.OperationFilter filter)GwithRestComponent(String restComponent)GwithRestContextPath(String contextPath)
-
-
-
Method Detail
-
withDestinationGenerator
public G withDestinationGenerator(DestinationGenerator directRouteGenerator)
-
withOperationFilter
public G withOperationFilter(org.apache.camel.generator.swagger.OperationFilter filter)
-
withClientRequestValidation
public G withClientRequestValidation()
-
asSpringComponent
public G asSpringComponent()
-
asSpringBootProject
public G asSpringBootProject()
-
toAppendable
public static RestDslSourceCodeGenerator<Appendable> toAppendable(io.swagger.models.Swagger swagger)
-
toDefinition
public static RestDslDefinitionGenerator toDefinition(io.swagger.models.Swagger swagger)
-
toXml
public static RestDslXmlGenerator toXml(io.swagger.models.Swagger swagger)
-
toFiler
public static RestDslSourceCodeGenerator<Filer> toFiler(io.swagger.models.Swagger swagger)
-
toPath
public static RestDslSourceCodeGenerator<Path> toPath(io.swagger.models.Swagger swagger)
-
-