In the past, I've written REST services using XML or JSON in the request and 
response, using JAXB annotations in POJOs to facilitate the mapping.

I've now started to work on a small set of services that will be using form 
encoding in the request and response (not my choice).  I can certainly get this 
to work, using either FormProvider.readFrom() or FormUtils.readFrom() to read 
from a form stream into a Form, and then getting the Map from that, and then 
getting the values I need to assign to POJO field.  I can do something similar 
writing a POJO to a form.

However, I notice that using this strategy I'm not using any implicit mapping 
specified in @Xml... annotations in my POJO.  I could certainly write the code 
to do this mapping, but I find it hard to believe this hasn't been done 
already.  Am I missing something?

Reply via email to