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
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.
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
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
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
> À : 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
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
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,
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
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
: 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
11 matches
Mail list logo