jax rs - Custom Date Format with jax-rs in apache cxf? -


I have been googling to find out that when I use jax-rs on apache cxf, How can I customize the code I see, and it seems that it only supports primitives, nm and a special hack that is a manufacturer with a string parameter associated with @formapara. It forces me to use string instead of forming. If I want to use FormParam, it's kind of ugly, is there a better way to do this?

  @POST @ path ("/ xxx") public string adpackage (@formam ("start date") Date start date) {...}  
< P> Thank you

The parameterhandler must be registered starting with CXF 2.3.2.

It is also always possible to override the date value (as part of the query, etc.) by using the RequestHandler filter for the default date (string) to work.

Comments