Custom Date Format with jax-rs in apache cxf?
- by Oscar Chan
Hi,
I have been googling to figure out how I can customize the Date format when I use jax-rs on apache CXF. I looked at the codes, and it seems that it only support primitives, enum and a special hack that assume the type associated with @ForumParam has a constructor with a single string parameter. This force me to use String instead of Date if I want to use ForumParam. it is kind of ugly. Is there a better way to do it?
@POST
@Path("/xxx")
public String addPackage(@FormParam("startDate") Date startDate)
{
...
}
Thanks