@grails.artefact.Enhances("Controller")
trait ControllerTrait
Trait for controllers given access to easy parsing and rendering of JSON and XML data using the methods asMessage and render. Created by philip on 2018-03-16.
| Type | Name and description |
|---|---|
org.lightningj.lnd.wrapper.XMLParser |
xmlParser |
| Type Params | Return Type | Name and description |
|---|---|---|
|
org.lightningj.lnd.wrapper.Message |
asMessage(java.lang.Class messageType)Method to parse request data from a format during content negotiation to a Message. |
|
void |
render(org.lightningj.lnd.wrapper.Message message)Method to render a message to JSON or XML using format during content negotiation. |
Method to parse request data from a format during content negotiation to a Message.
messageType - the Message class to parse data into.Method to render a message to JSON or XML using format during content negotiation.