dev@jersey.java.net

Re: All resource reps instead of reference

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 02 Jan 2008 18:19:07 +0100

Arun Gupta wrote:
> Hi Paul,
>
> Yes, I'm referring to the NetBeans plugin.
>
> Do you expect the following support to be incorporated in the plugin or
> Jersey runtime and then utilized by the plugin ?
>

I would expect such functionality to be incorporated in the plugin as
IMHO they are tool centric stuff that should be aligned with
JAX-RS/Jersey as an enabler.

The plugin is an extremely important use-case for JAX-RS/Jersey to see
what general foundational functionality should go into JAX-RS/Jersey to
reduce the code bloat and to make it easier to program.

Paul.

> -Arun
>
> Paul Sandoz wrote:
>> Hi Arun,
>>
>> I assume you are referring to the NetBeans RESTful database plugin?
>>
>> I do not know of such an option.
>>
>> If such a feature were supported i think it would also require a
>> paging mechanism, for example using a query parameter (with a default
>> number of entries embedded in the representation so that the size of
>> the representation does not become too large). Potentially another
>> feature is to only return a partial set of informtion for each entry
>> rather than a complete embedded representation i.e. just enough
>> important information for a client to make a decision whether they
>> need to get the whole representation from the URI.
>>
>> Note that HTTP pipelining and caching can make also things reasonably
>> efficient, but it will still involve a latency to report not modified
>> responses. But IIRC caching support is yet to be implemented.
>>
>> Paul.
>>
>> Arun Gupta wrote:
>>> A Jersey endpoint return results like:
>>>
>>> -- cut here --
>>> -
>>> <events
>>> uri="http://localhost:8080/WebApplication2/resources/events/">
>>> -
>>> <eventRef
>>> uri="http://localhost:8080/WebApplication2/resources/events/1/">
>>> <id>1</id>
>>> </eventRef>
>>> -
>>> <eventRef
>>> uri="http://localhost:8080/WebApplication2/resources/events/2/">
>>> <id>2</id>
>>> </eventRef>
>>> -
>>> <eventRef
>>> uri="http://localhost:8080/WebApplication2/resources/events/3/">
>>> <id>3</id>
>>> </eventRef>
>>> -
>>> <eventRef
>>> uri="http://localhost:8080/WebApplication2/resources/events/4/">
>>> <id>4</id>
>>> -- cut here --
>>>
>>> Is there an option (that can be configured on the endpoint or passed
>>> as parameters to the URL) such that the result contains all the
>>> resources instead of reference to the resources ?
>>>
>>> -Arun
>>
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109