Class SpringRestParams

  • All Implemented Interfaces:

    
    public final class SpringRestParams
    
                        

    Representation of a set of parameters allowing the parameterization (in selected aspects) of the REST server / client code generator for the spring framework.

    • Constructor Detail

      • SpringRestParams

        SpringRestParams()
    • Method Detail

      • getDelegateToFacade

         final Boolean getDelegateToFacade()

        If true, will be generated *Facade classes (one class for a group of operations), otherwise, will be generated *Command / *Query classes (one class for one operation).

      • setDelegateToFacade

         final Unit setDelegateToFacade(Boolean delegateToFacade)

        If true, will be generated *Facade classes (one class for a group of operations), otherwise, will be generated *Command / *Query classes (one class for one operation).

      • getControllerPerOperation

         final Boolean getControllerPerOperation()

        If true, each REST operation will have its own RestController class, otherwise, all operations from one group will share RestController class.

      • setControllerPerOperation

         final Unit setControllerPerOperation(Boolean controllerPerOperation)

        If true, each REST operation will have its own RestController class, otherwise, all operations from one group will share RestController class.

      • getStaticFactoryMethodForRestResponse

         final Boolean getStaticFactoryMethodForRestResponse()

        If true, it will only be possible to create a REST response object using the static factory method available from the REST response class. NOTE Each REST operation has its own REST response class. RS2T generator

      • setStaticFactoryMethodForRestResponse

         final Unit setStaticFactoryMethodForRestResponse(Boolean staticFactoryMethodForRestResponse)

        If true, it will only be possible to create a REST response object using the static factory method available from the REST response class. NOTE Each REST operation has its own REST response class. RS2T generator

      • getPayloadField

         final String getPayloadField()

        Parameter name of the REST controller method used to inject the request body as a string.

      • setPayloadField

         final Unit setPayloadField(String payloadField)

        Parameter name of the REST controller method used to inject the request body as a string.

      • injectBeanIntoRequest

         final SpringRestParams injectBeanIntoRequest(String name, String className)

        Injects bean into request object.

        Parameters:
        name - field name of the injected bean in the request class
        className - class name of the injected bean
        Returns:

        self