Hi,
On 30/10/13 15:29, Francesco Chicchiriccò wrote:
On 30/10/2013 16:08, Sergey Beryozkin wrote:
Hi Francesco
On 30/10/13 12:53, Francesco Chicchiriccò wrote:
Hi all,
as you might have seen, I've just opened SYNCOPE-429 and SYNCOPE-430
with a couple of proposal to enhance our RESTful services, with support
for ETag, If*, and Prefer HTTP headers, at least for users, roles and
resources.

The only issue is that JAX-RS has no explicit support for Prefer so I
guess it will have to be done with some custom code

Hi Sergey,
do you mean that there is a way to "automagically" handle ETag with
JAX-RS or are you referring to - say - methods like ResponseBuilder.tag()?
If the latter, this would only mean usage of ResponseBuilder.header() /
WebClient.header() instead of "dedicated" methods, correct?

yes, in JAX-RS, Request context can help:

https://jax-rs-spec.java.net/nonav/2.0/apidocs/javax/ws/rs/core/Request.html

I'm not sure yet how Prefer would fit into it though. You can have a custom Context injected with CXF, say, PreferRequest which would offer Prefer-specific support, possibly extending some of CXF RequestImpl code if needed

Cheers, Sergey

Regards.




Reply via email to