users@jersey.java.net

[Jersey] Catch all requests under a specific path

From: Erik Holstad <erikholstad_at_gmail.com>
Date: Thu, 20 Mar 2014 16:34:14 -0700

Hey!

I wounder if there is a way to route all calls to any sub paths to a given
parent path.

Let's pretend we have 2 endpoints

GET /foo and
GET /foo/bar

I would like to be able to catch them both in one method and then branch
afterwards.

I know I can do this using the regular HttpServletRequest but I just want
this functionality for one specific path so don't want to change the
structure of the other servlets.

-- 
Regards Erik