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
Modifier and TypeFieldDescription(package private) ChenileEntryPoint
(package private) ChenileExchangeBuilder
private final LocaleResolver
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
enhanceBodyWithWarnings
(ResponseEntity.BodyBuilder bodyBuilder, ChenileExchange chenileExchange) private ChenileExchange
makeExchange
(HttpServletRequest request, String opName, Object[] args) private void
populateBody
(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
-