users@jersey.java.net

[Jersey] seeing other params from an injectable

From: Sam Perman <sam_at_permans.com>
Date: Tue, 28 Aug 2012 16:09:37 -0400

Hello

I'm writing a custom subclass of AbstractHttpContextInjectable for
authorization... so it looks something like this on the resource:

    @GET
    @Path("{accountId}")
    public Response get(@Authorize(permission="read") User
user, @PathParam("accountId") String accountId) {
        ... do stuff
    }

Its working great as long as the @Authorize injectable code doesn't need
any context about the request. I'd like to change it so it knows what the
accountId is. Is there a way that I can write my injectable code so it
knows about the accountId value?

thanks
sam