Hi Thomas,
Thanks for the feedback. Inlined …
> a) It isn't save against concurrent updates:
>
> @PUT
> ResponseBuilder rb = request.evaluatePreconditions(etag);
> // right now another concurrent request updates the resource
> if (rb == null)
> return doUpdate(foo);
Not sure I follow. The default lifecycle in JAX-RS is per request. Each request will get it's own instance of the resource class.
>
> b) It does not return boolean but an instance of ResponseBuilder
>
> c) It can return null. Ugly.
See Javadoc. This is done to provider the appropriate status and maybe the Vary header.
-- Santiago