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