dev@jsr311.java.net

Re: Precondition support

From: Julian Reschke <julian.reschke_at_gmx.de>
Date: Tue, 10 Apr 2007 12:35:20 +0200

Jerome Louvel schrieb:
> Paul,
>
>> It makes it easier for the developer because they control the
>> application thread, as opposed to the runtime controlling the
>> application thread (e.g. compare SAX to StAX).
>
> Sorry, I still don't see your point :(
>
> In the Restlet API we have a strong support for pre-conditions and we
> considered that their behavior were standardized enough in the HTTP spec to
> be transparently handled by the framework rather than manually by the
> Resource/Representation developper.
>
> Could you elaborate a bit more and ideally give an usage example that can't
> be automatically handled by the JSR implementation?
>
> Best regards,
> Jerome

Well,

one issue is whether the implementation is supposed to handle all
request headers contributing to the preconditions (keep in mind that the
set is open-ended, for instance RFC2518 adds "If" and "Overwrite").

Best regards, Julian