Announcement Announcement Module
Collapse
No announcement yet.
JAXB unmarshalled objects as input for scaffold Web controllers Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JAXB unmarshalled objects as input for scaffold Web controllers

    I wonder whether it is possible to let the generated scaffold web controllers for
    POST and PUT requests deal with JSON or XML input.

    Using the http-representation addon I'm able to return the appropriate data
    format with help of content negotiation. But how can a flexible databinding be
    realized, which unmarshals based on content-type of a POST or PUT request ?


    Up to now, I'm duplicating the code of the scaffold controller, adding a
    @RequestBody annotation on the argument to unmarshal.

    Is there a better solution ?
Working...
X