users@jersey.java.net

[Jersey] Re: Provider for Joda's DateTime?

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Tue, 20 Nov 2012 18:33:57 -0500

On 20/11/2012 5:43 PM, Jeremy Johnson wrote:
>
> I'd like to accept Joda's DateTime objects as query parameters and
> understand that some flavor of injectable provider is needed.
>
> Joda's DateTime is so ubiquitous, I was surprised to not find an
> implementation already out there beyond a couple of partial
> implementations on this list.
>
> Does anyone have a working, reliable implementation they'd care to
> share? I also posted this to Stack Overflow, if you'd like to
> duplicate your response there as well for cred.
>
> Thanks,
>
> Jeremy
>

     It depends what resource representation format you're using. If
you're using JSON with the Jackson library this will work:
https://github.com/FasterXML/jackson-datatype-joda

PS: Where is the Stackoverflow question? :)

Gili