dev@jsr311.java.net

Re: JSR311: Issue 1 - Proposal for new conneg APIs

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 12 Oct 2007 09:17:13 -0400

On Oct 12, 2007, at 3:26 AM, Jerome Louvel wrote:
>
>> BTW, RepresentationVariant is somewhat similar to the Variant class
>> in the RESTlet API. The main difference is that a variant in RESTlet
>> includes all the representation metadata whereas
>> RepresentationVariant only includes metadata used for conneg.
>
> As a side note, the Variant class in Restlet 1.1 (SVN trunk) only
> contains the conneg metadata. The rest of the metadata has been moved
> down in our Representation class (size, dates, etc.).
>
Interesting, may I enquire what drove the change ? I kept the two
separate to avoid the need to calculate etags and last modified etc
for each possible variant, was that a factor in your decision too ?

Thanks,
Marc.

> PS: Please note that the right spelling is *Restlet* instead of
> RESTlet
>
OK, Sorry about that.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.