Package org.chenile.http.handler
Class ControllerSupport
java.lang.Object
org.chenile.http.handler.ControllerSupport
- Direct Known Subclasses:
QueryController
This class must be extended by Chenile controllers who use annotation to configure a service.
Merely, call the process() method for delegating control to Chenile.
The process() method constructs a ResponseEntity for the response returned by the Chenile Entry point
- Author:
- Raja Shankar Kolluru
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ChenileEntryPoint(package private) ChenileExchangeBuilderprivate final LocaleResolverprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidenhanceBodyWithWarnings(ResponseEntity.BodyBuilder bodyBuilder, ChenileExchange chenileExchange) private ChenileExchangemakeExchange(HttpServletRequest request, String opName, Object[] args) private voidpopulateBody(ChenileExchange chenileExchange, Object[] args) protected <T> ResponseEntity<T>process(HttpServletRequest request, Object... args) protected <T> ResponseEntity<T>process(String opName, HttpServletRequest request, Object... args)
-
Field Details
-
chenileExchangeBuilder
-
chenileEntryPoint
-
localeResolver
-
service
-
-
Constructor Details
-
ControllerSupport
public ControllerSupport()
-
-
Method Details
-
process
-
process
-
enhanceBodyWithWarnings
private void enhanceBodyWithWarnings(ResponseEntity.BodyBuilder bodyBuilder, ChenileExchange chenileExchange) -
makeExchange
-
populateBody
-