Luke Monahan wrote:
> Just what I needed, thanks for the pointer.
>
I have just added support in the trunk for injection of ExtendedUriInfo.
Paul.
> Luke.
>
> On Tuesday 03 June 2008 01:45:30 Jakub Podlesak wrote:
>> Hi Luke,
>>
>> you can try to inject:
>>
>> @Context HttpContext context;
>>
>> and then
>>
>> context.getUriInfo()
>>
>> should give you what you need (ExtendedUriInfo).
>>
>> HTH,
>>
>> ~Jakub
>>
>> On Mon, Jun 02, 2008 at 11:50:07AM +1000, Luke Monahan wrote:
>>> Hi All,
>>>
>>> I noticed the ExtendedUriInfo interface in the Jersey docs (latest
>>> 0.8-ea-SNAPSHOT) and found it useful, but it doesn't seem to be
>>> injectable like a plain UriInfo is. i.e.
>>>
>>> @Context private ExtendedUriInfo uriInfo;
>>>
>>> in a MessageBodyReader is null, wheras a UriInfo injected in the same
>>> manner works fine.
>>>
>>> Is there specific way I am meant to access this interface, or is it meant
>>> for internal use only?
>>>
>>> As a test I also tried using ExtendedUriInfo as a @Context annotated
>>> parameter to a @GET annotated method which provoked the following
>>> exception:
>>>
>>> com.sun.jersey.api.container.ContainerException: Method, public
>>> javax.ws.rs.core.Response
>>> com.tds.core.resource.agency.AgencyCollectionResource.getAgencies(com.sun
>>> .jersey.api.uri.ExtendedUriInfo), annotated with GET of resource, class
>>> com.tds.core.resource.agency.AgencyCollectionResource, is not recognized
>>> as valid Java method annotated with @HttpMethod
>>>
>>> Thanks in advance,
>>>
>>> Luke.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109