-
1. Re: Date marshalling in Path/query param in Errai 2.4.3 JaxRS?
csa Feb 18, 2014 12:47 PM (in response to steeveb)Hi Steeve,
While we could make this work in our Jackson transformer, wouldn't it be better to use a numeric (long) representation of the date in your URL (instead of the String representation)?
The requirements for @QueryParam and @PathParam technically allow java.util.Date to be used but the constructor taking a single String argument in Date is deprecated:
https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/index.html?javax/ws/rs/PathParam.html
Cheers,
Christian
-
2. Re: Date marshalling in Path/query param in Errai 2.4.3 JaxRS?
csa Feb 18, 2014 1:31 PM (in response to csa)1 of 1 people found this helpfulIn case you can't (or don't want to) change to a numeric representation of java.util.Date in your @Params you can upgrade to 2.4.4-SNAPSHOT or 3.0-SNAPSHOT now. I've pushed a fix for this.
Cheers,
Christian
-
3. Re: Date marshalling in Path/query param in Errai 2.4.3 JaxRS?
steeveb Feb 18, 2014 4:40 PM (in response to csa)Hi Christian,
First of all, thank you for your quick answer!
Indeed i could have changed my date representation.
My point was just that it could be nice to be able to use dates as they are used in object attributes, but as i can notice, it is already fixed in next version so great, and thank you again for this project that made me save a lot of time!
Regards,
Steeve