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

Re: match by host?

From: Bill Burke <bburke_at_redhat.com>
Date: Fri, 23 Jan 2015 09:59:14 -0500

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 {}


On 1/23/2015 9:45 AM, Bill Burke wrote:
> On a project I'm on, one of our developers wants to match requests via
> host. Its a security project and he wants to be able to offer host
> names that specify the security realm:
>
> i.e.
>
> http://myrealm.auth-server.com
>
>
> Could we add a @Host annotation maybe?
>
> @Path("...")
> @Host("{realm}.auth-server.com")
>
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com