users@jersey.java.net

Re: [Jersey] Multiple base URLs

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 14 Apr 2009 10:17:00 +0200

Hi Jaka,

I recommend utilizing a filter. You can utilize a servlet filter or a
Jersey filter.

If you want to ensure that good behavior with caches it is recommend
that you perform a redirection to the canonical URL.

Paul.

On Apr 13, 2009, at 4:14 PM, Jaka JanĨar wrote:

> Hi!
>
> I want my root resources to be available at multiple URLs, e.g.:
> - http://<param>.domain.com/resource
> - http://domain.com/<param>/resource
> ...
>
> What is the best way to achieve this? A servlet filter to normalize
> all paths to a canonical one?
>
> Jaka
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>