users@jersey.java.net

Re: [Jersey] Representation addressability and the _at_Path annotation

From: Jo Størset <jo.storset_at_usit.uio.no>
Date: Mon, 23 Mar 2009 23:08:51 +0100

Den 23. mars. 2009 kl. 21.44 skrev Jaka Jančar:

> What I would like the most is the ability to define a global map of
> extensions to mime types (e.g. png=>image/png, ...), and whenever an
> extension was provided by the client (/images/15.png instead of
> just /images/15), the client-provided accept-types would be
> overridden.
>
> Perhaps this is already doable somehow using filters.

See getMediaTypeMappings inn the appconfig, for details:

http://markmail.org/message/a6vaci25mynqwn6z

Jo