Interface JavaMicronautServerOptionsBuilder

All Superinterfaces:
GeneratorOptionsBuilder

public interface JavaMicronautServerOptionsBuilder extends GeneratorOptionsBuilder
Configures options which are specific to the server code.
  • Method Details

    • withControllerPackage

      JavaMicronautServerOptionsBuilder withControllerPackage(String controllerPackage)
      Sets the package name of generated controller classes.
      Parameters:
      controllerPackage - the package name
      Returns:
      this builder
    • withGenerateImplementationFiles

      JavaMicronautServerOptionsBuilder withGenerateImplementationFiles(boolean generateImplementationFiles)
      Whether to generate controller implementations that need to be filled in.
      Parameters:
      generateImplementationFiles - the implementation files flag
      Returns:
      this builder
    • withGenerateOperationsToReturnNotImplemented

      JavaMicronautServerOptionsBuilder withGenerateOperationsToReturnNotImplemented(boolean generateOperationsToReturnNotImplemented)
      If set to true, controller operations will return not implemented status.
      Parameters:
      generateOperationsToReturnNotImplemented - the not implemented flag
      Returns:
      this builder
    • withGenerateControllerFromExamples

      JavaMicronautServerOptionsBuilder withGenerateControllerFromExamples(boolean generateControllerFromExamples)
      If set to true, controllers will be generated using examples.
      Parameters:
      generateControllerFromExamples - the examples flag
      Returns:
      this builder
    • withAuthentication

      JavaMicronautServerOptionsBuilder withAuthentication(boolean useAuth)
      If set to true, generated code will add support for authentication.
      Parameters:
      useAuth - the authentication flag
      Returns:
      this builder