jsr370-experts@jax-rs-spec.java.net

Re: match by host?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 28 Jan 2015 15:35:30 +0100

Hi Bill,

Can you please explain your idea in more detail? E.g. are you talking about information passed in via Host HTTP request header or something else?

Cheers,
Marek


> On 23 Jan 2015, at 16:41, Santiago Pericas-Geertsen <santiago.pericasgeertsen_at_Oracle.com> wrote:
>
>
>> On Jan 23, 2015, at 9:59 AM, Bill Burke <bburke_at_redhat.com> wrote:
>>
>> Bah, probably not a good example. But I could see something useful like this:
>>
>> @Host("sso.{wildcard:.*}")
>> @Path("/")
>> public class SSOResource {}
>>
>> @Host("admin.{wildcard:.*}")
>> @Path("/")
>> public class AdminResource {}
>
> Not sure I follow. Is this matching the host in the request URL?
>
> — Santiago
>
>