Class SpringRestParams
-
- All Implemented Interfaces:
public final class SpringRestParamsRepresentation of a set of parameters allowing the parameterization (in selected aspects) of the REST server / client code generator for the spring framework.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleandelegateToFacadeprivate BooleancontrollerPerOperationprivate BooleanstaticFactoryMethodForRestResponseprivate StringpayloadFieldprivate List<FieldCm>injectBeansIntoRequest
-
Constructor Summary
Constructors Constructor Description SpringRestParams()
-
Method Summary
Modifier and Type Method Description final BooleangetDelegateToFacade()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). final UnitsetDelegateToFacade(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). final BooleangetControllerPerOperation()If true, each REST operation will have its own RestController class, otherwise, all operations from one group will share RestController class. final UnitsetControllerPerOperation(Boolean controllerPerOperation)If true, each REST operation will have its own RestController class, otherwise, all operations from one group will share RestController class. final BooleangetStaticFactoryMethodForRestResponse()If true, it will only be possible to create a REST response object using the static factory method available from the REST response class. final UnitsetStaticFactoryMethodForRestResponse(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. final StringgetPayloadField()Parameter name of the REST controller method used to inject the request body as a string. final UnitsetPayloadField(String payloadField)Parameter name of the REST controller method used to inject the request body as a string. final List<FieldCm>getInjectBeansIntoRequest()final UnitsetInjectBeansIntoRequest(List<FieldCm> injectBeansIntoRequest)final SpringRestParamsdelegateToFacade(Boolean value)final SpringRestParamsinjectBeanIntoRequest(String name, String className)Injects bean into request object. -
-
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.
-
getInjectBeansIntoRequest
final List<FieldCm> getInjectBeansIntoRequest()
-
setInjectBeansIntoRequest
final Unit setInjectBeansIntoRequest(List<FieldCm> injectBeansIntoRequest)
-
delegateToFacade
final SpringRestParams delegateToFacade(Boolean value)
-
injectBeanIntoRequest
final SpringRestParams injectBeanIntoRequest(String name, String className)
Injects bean into request object.
- Parameters:
name- field name of the injected bean in the request classclassName- class name of the injected bean- Returns:
self
-
-
-
-