Package org.chenile.http.init.od
Class MappingProducerBase
java.lang.Object
org.chenile.http.init.od.MappingProducerBase
- Direct Known Subclasses:
DeleteMappingProducer
,GetMappingProducer
,PatchMappingProducer
,PostMappingProducer
,PutMappingProducer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectChenileAnnotations
(Method method, OperationDefinition od) protected abstract String[]
private static ParameterizedTypeReference<?>
findOutputType
(ResolvableType genericType) protected abstract HTTPMethod
protected void
populateParams
(ChenileServiceDefinition csd, Method method, OperationDefinition od) protected void
processBodyTypeSelector
(ChenileServiceDefinition csd, Method method, OperationDefinition od) protected void
processChenileOperation
(ChenileServiceDefinition csd, Method method, OperationDefinition od) protected void
processChenileResponseCodes
(Method method, OperationDefinition od) protected void
processEventsSubscribedTo
(ChenileServiceDefinition csd, Method method, OperationDefinition od) protected void
processInterceptedBy
(ChenileServiceDefinition csd, Method method, OperationDefinition od) protected void
processParamClassType
(OperationDefinition od, ParamDefinition pd, Parameter param) The paramClass Annotation tells Chenile that the actual signature of the service's operation is different from the one that is defined in the controller.If the parameter is of type String then the Chenile Param type will override it.void
produceOperationDefinition
(ChenileServiceDefinition csd, Method method) protected abstract String[]
protected abstract String[]
-
Field Details
-
applicationContext
-
-
Constructor Details
-
MappingProducerBase
-
-
Method Details
-
processChenileOperation
protected void processChenileOperation(ChenileServiceDefinition csd, Method method, OperationDefinition od) -
processChenileResponseCodes
-
processInterceptedBy
protected void processInterceptedBy(ChenileServiceDefinition csd, Method method, OperationDefinition od) -
processBodyTypeSelector
protected void processBodyTypeSelector(ChenileServiceDefinition csd, Method method, OperationDefinition od) -
processEventsSubscribedTo
protected void processEventsSubscribedTo(ChenileServiceDefinition csd, Method method, OperationDefinition od) -
processParamClassType
The paramClass Annotation tells Chenile that the actual signature of the service's operation is different from the one that is defined in the controller.If the parameter is of type String then the Chenile Param type will override it. Else, the actual type is preserved.- Parameters:
od
- the operation definitionpd
- the param definition that might have been annotated with ChenileParamTypeparam
- the parameter defined by the Java reflection API
-
collectChenileAnnotations
-
populateParams
-
url
-
httpMethod
-
consumes
-
produces
-
produceOperationDefinition
-
findOutputType
-