users@jersey.java.net

custom content negotiation

From: Ryan Heaton <ryan_at_webcohesion.com>
Date: Tue, 5 Aug 2008 15:20:10 -0600

Any tips on how to implement custom content negotiation?

Jersey supports content negotiation via extensions, like this:

/context/resource
/context/resource.xml
/context/resource.html

What if I wanted to add content negotiation via URL, like this:

/context/resource
/context/xml/resource
/context/html/resource

Thanks!

-Ryan