Class AbstractJavaJAXRSServerCodegen

    • Field Detail

      • JAXRS_TEMPLATE_DIRECTORY_NAME

        protected static final String JAXRS_TEMPLATE_DIRECTORY_NAME
        Name of the sub-directory in "src/main/resource" where to find the Mustache template for the JAX-RS Codegen.
        See Also:
        Constant Field Values
      • implFolder

        protected String implFolder
      • testResourcesFolder

        protected String testResourcesFolder
      • title

        protected String title
      • useBeanValidation

        protected boolean useBeanValidation
    • Constructor Detail

      • AbstractJavaJAXRSServerCodegen

        public AbstractJavaJAXRSServerCodegen()
    • Method Detail

      • getTag

        public io.swagger.codegen.v3.CodegenType getTag()
        Specified by:
        getTag in interface io.swagger.codegen.v3.CodegenConfig
      • processOpts

        public void processOpts()
        Specified by:
        processOpts in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        processOpts in class AbstractJavaCodegen
      • preprocessOpenAPI

        public void preprocessOpenAPI​(io.swagger.v3.oas.models.OpenAPI openAPI)
        Specified by:
        preprocessOpenAPI in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        preprocessOpenAPI in class AbstractJavaCodegen
      • toApiName

        public String toApiName​(String name)
        Description copied from class: DefaultCodegenConfig
        Output the API (class) name (capitalized) ending with "Api" Return DefaultApi if name is empty
        Specified by:
        toApiName in interface io.swagger.codegen.v3.CodegenConfig
        Overrides:
        toApiName in class AbstractJavaCodegen
        Parameters:
        name - the name of the Api
        Returns:
        capitalized Api name ending with "Api"