Re: Precondition support

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 10 Apr 2007 13:58:24 +0200

Jerome Louvel wrote:
> 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?

I did not say that. I said what i thought would be *easiest* for the

Rather than the developer having to manage logic and state over a
sequence of method calls invoked by the runtime (like with SAX) they are
in control and can choose to keep the state and logic local (like with


| ? + ? = To question
    Paul Sandoz