Re: Conditional GETs?

2007-06-04 Thread Peter Lacey
Never mind. I figured it out. For the record. It's enough to just tack the ETag onto the representation. RESTlet is smart enough to compare it to the client conditions and send back the 304 and an empty representation for you if necessary. Cool! I was expecting to have to do a lot more wo

Re: Conditional GETs?

2007-06-06 Thread Stian Soiland
On 4 Jun 2007, at 15:53, Peter Lacey wrote: public Representation getRepresentation(Variant variant) { Representation result = null; if (variant.getMediaType().equals(MediaType.APPLICATION_XML)) { // create DOM result = new DomRepresentation(MediaType.

RE: Conditional GETs?

2007-06-11 Thread Jerome Louvel
ercredi 6 juin 2007 11:23 > À : discuss@restlet.tigris.org > Objet : Re: Conditional GETs? > > > On 4 Jun 2007, at 15:53, Peter Lacey wrote: > > > public Representation getRepresentation(Variant variant) { > > Representation result = null; > > &g

Re: Conditional GETs?

2007-06-11 Thread Adam Taft
an Soiland [mailto:[EMAIL PROTECTED] Envoyé : mercredi 6 juin 2007 11:23 À : discuss@restlet.tigris.org Objet : Re: Conditional GETs? On 4 Jun 2007, at 15:53, Peter Lacey wrote: public Representation getRepresentation(Variant variant) { Representation result = null; if (vari

Re: Conditional GETs?

2007-06-11 Thread Jerome Louvel
ROTECTED] Envoyé : mercredi 6 juin 2007 11:23 À : discuss@restlet.tigris.org Objet : Re: Conditional GETs? On 4 Jun 2007, at 15:53, Peter Lacey wrote: public Representation getRepresentation(Variant variant) { Representation result = null; if (variant.getMediaType

RE: Conditional GETs?

2007-06-16 Thread Jerome Louvel
> À : discuss@restlet.tigris.org > Objet : Re: Conditional GETs? > > Hi Adam, > > There is already a "tag" property on the Variant class that you can > already use. In 1.1, we will simply use this property earlier in the > algorithm to not call getRepresentatio

Re: Conditional GETs?

2007-06-18 Thread Avi Flax
Jerome, I'm eagerly awaiting this snapshot! No pressure, but are we looking at a matter of days here, or is it more like weeks? Thanks! Avi On 6/16/07, Jerome Louvel <[EMAIL PROTECTED]> wrote: Hi all, This RFE is now fixed in SVN trunk and will be testable in the upcoming 1.1 snapshot. Great

RE: Conditional GETs?

2007-06-18 Thread Jerome Louvel
Hi Avi, A matter of days! Version 1.0.2 is pending too. Best regards, Jerome > -Message d'origine- > De : Avi Flax [mailto:[EMAIL PROTECTED] > Envoyé : lundi 18 juin 2007 20:05 > À : discuss@restlet.tigris.org > Objet : Re: Conditional GETs? > > Jerome,

Re: Conditional GETs?

2007-06-18 Thread Avi Flax
Great news, thanks! Avi On 6/18/07, Jerome Louvel <[EMAIL PROTECTED]> wrote: Hi Avi, A matter of days! Version 1.0.2 is pending too. Best regards, Jerome

Re: Conditional GETs?

2007-06-20 Thread Peter Lacey
erome -Message d'origine- De : Jerome Louvel [mailto:[EMAIL PROTECTED] Envoyé : mardi 12 juin 2007 08:55 À : discuss@restlet.tigris.org Objet : Re: Conditional GETs? Hi Adam, There is already a "tag" property on the Variant class that you can already use. In 1.1, we will simply use t

RE: Conditional GETs?

2007-06-25 Thread Jerome Louvel
: discuss@restlet.tigris.org > Objet : Re: Conditional GETs? > > Jerome, > > Here's another variant of the same issue. If the server > wants to return > a 204 (No Content), then #getRepresentation() is still > called. Does it > make sense to optimize this out