users@jersey.java.net

Re: [Jersey] Forward (or include) from one resource to another (no JSP)

From: gerard davison <gerard.davison_at_oracle.com>
Date: Thu, 03 Dec 2009 18:28:43 +0000

Done,

https://jersey.dev.java.net/issues/show_bug.cgi?id=436

On 02/12/2009 15:07, Paul Sandoz wrote:
>
> On Dec 2, 2009, at 2:43 PM, gerard davison wrote:
>
>>
>> Paul,
>>
>> Would it be possible to extend this interface to take relative and
>> absolute paths so I can more easily get hold of specific classes on
>> the same server?
>>
>> interface Resource
>> {
>> public <T> getResource(Class<T> input);
>>
>> // These method will throw a suitable run time exception if the
>> resource class doesn't match
>> // ideally the input should be able to be an interface in these
>> cases
>>
>> // The path is relative to the current resource can also but
>> absolute with relation to the root
>> // of the jersey application if the path starts with a "/"
>> public <T> getResource(Class<T> input, String path);
>>
>> // For the moment if the URI is for another server then fail
>> // Ideally if provided with an interface would use client
>> proxying code.
>> public <T> getResource(Class<T> input, URI uri);
>>
>> }
>>
>> This could really help writing HATEOAS style clients.
>>
>
> Good idea, could you log an enhancement so we do not loose track of this.
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

-- 
Gerard Davison | Senior Principal Software Engineer | +44 118 924 5095
Oracle JDeveloper Web Service, Spring, Weblogic SCA Tooling Development
Oracle Corporation UK Ltd is a company incorporated in England&  Wales.
Company Reg. No. 1782505.
Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA.
Blog http://kingsfleet.blogspot.com