users@jersey.java.net

[Jersey] ExceptionMapper and the request

From: Craig Ching <craigching_at_gmail.com>
Date: Wed, 30 Jan 2013 10:01:35 -0600

Hi!

Is there anyway in an ExceptionMapper to get the original request? I was
thinking that for an Accepts header of application/json I would return a
JSON response but for an Accepts of text/html I would redirect to our main
page. Any other way I might accomplish that?

Cheers,
Craig