users@jersey.java.net

[Jersey] Multiple Resource Configurations

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Fri, 14 Nov 2014 09:42:39 -0800

I'm using Grizzly with Jersey via GrizzlyHttpServerFactory. I was wondering
if it was possible to have N paths that map to N ResourceConfig instances?

There are a lot of debates about the right way to version APIs and I'd
rather not go down that rabbit hole.

But lets assume that I want a "rest/v1.0" path that maps to a
ResourceConfigV1 and a "rest/v2.0" path that maps to a ResourceConfigV2.

What is the simplest way to do that in Jersey with Grizzly?

Thanks in advance!

R.