users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: FYI: ResourceContext API proposed

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 28 Aug 2012 14:40:16 -0400

On 8/28/2012 12:43 PM, Marek Potociar wrote:
>
> In Jersey users typically use it to provision (fully-initialized and
> properly scoped) sub-resource instances

I just not certain this is a job for JAX-RS.

>, regardless of what container
> manages each particular instance, using the
> ResourceContext.getResource(...) method. Another problem the users are
> facing is that in many cases if a user wants to support more complex URI
> spaces, it would make a lot of sense to leverage the JAX-RS matching
> engine to internally "find" a proper resource instance or information
> about it. For those cases the ResourceContext contains the matchXxx()
> methods that expose the matching engine to the end user.
>

I've had the case that we implemeted where users want to do something
like a Servlet.forward(), but I don't think this is the same thing. Can
you give some examples of each match method? I'm just not understanding
how it would be used.


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