Hi,
I'd like to reuse Jersey's method dispatch facility to resolve URIs
for me from within other request-handling methods:
Inspired by a current discussion on rest-discuss regarding references,
I tried to put more HATEOS into my service.
But if I send out resource references as URIs, then I should also
accept them in PUT/POST message bodies for shuffling stuff around
between containers, etc. Trying to implement this I realized I'd have
to "repeat myself" (and Jersey code) when implementing a lookup method
from URIs to domain objects.
Lucky for me, my domain objects are my JAXB entities (for now).
So I thought my Jersey method while processing a request might hook
into Jersey somewhere halfway in the request processing pipe, so a
(possibly relative) URI in context of the original request would be
resolved into the JAXB entity it represents as if a GET request has
been issued for it.
Am I making myself clear?
Is something like this possible?